* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.65;
    color: #1a1a2e;
    background-color: #f8f9fa;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1rem;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a2e;
    font-size: 10pt;
    font-weight: 400;
    transition: background-color 0.15s;
}

.nav-link:hover {
    background-color: #f0f5ff;
}

.nav-link.active {
    background-color: #e8f4fd;
    color: #0047AB;
    font-weight: 500;
}

.nav-link i {
    width: 18px;
    text-align: center;
    color: #07215A;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 1rem;
}

.sidebar-footer hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

/* Main content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
}

/* Page headings */
h1 {
    color: #07215A;
    font-size: 22pt;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    color: #0047AB;
    font-size: 13pt;
    font-weight: 700;
    border-left: 4px solid #47AEDB;
    padding-left: 12px;
    margin-bottom: 1rem;
}

/* Cards */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.style-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.style-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.style-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.style-card-body {
    padding: 1rem;
}

.style-card-body h5 {
    color: #07215A;
    font-weight: 600;
    font-size: 11pt;
    margin-bottom: 0.5rem;
}

.style-card-body p {
    color: #6c757d;
    font-size: 9pt;
    margin-bottom: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 9pt;
    font-weight: 700;
    color: white;
    background-color: #0047AB;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10pt;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
    background-color: #0047AB;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: #0047AB;
    border: 1px solid #0047AB;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #07215A;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 10pt;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10pt;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0047AB;
    box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.1);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #0047AB;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s;
}

.upload-zone:hover {
    background-color: #f0f5ff;
}

.upload-zone i {
    font-size: 2rem;
    color: #0047AB;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 10pt;
}

.alert-success { background-color: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-danger { background-color: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info { background-color: #e8f4fd; color: #07215A; border-left: 4px solid #0047AB; }
.alert-warning { background-color: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    color: #0047AB;
    margin-bottom: 1rem;
}

/* Type selection cards */
.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s;
}

.type-card:hover {
    border-color: #47AEDB;
    background-color: #f0f5ff;
}

.type-card.active {
    border-color: #0047AB;
    background-color: #e8f4fd;
}

.type-card small {
    font-size: 9pt;
    margin-top: 4px;
}

/* Style selection cards */
.style-select-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.style-select-card:hover {
    border-color: #47AEDB;
    box-shadow: 0 2px 8px rgba(0, 71, 171, 0.1);
}

.style-select-card.selected {
    border-color: #0047AB;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.2);
}

.style-select-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.style-select-name {
    padding: 6px 8px;
    font-size: 9pt;
    font-weight: 500;
    color: #07215A;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.style-select-check {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    color: #0047AB;
    font-size: 1.2rem;
    background: white;
    border-radius: 50%;
    line-height: 1;
}

.style-select-card.selected .style-select-check {
    display: block;
}
