* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #D53C2D;
    --deep-blue: #1E3A8A;
    --emerald: #10B981;
    --graphite: #0F172A;
    --light: #F1F5F9;
    --white: #FFFFFF;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 72px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--graphite);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--graphite);
}

.login-page.show {
    display: flex;
}

.login-card {
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 10px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--graphite);
    margin-bottom: 8px;
}

.login-logo p {
    color: #64748b;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--graphite);
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c2321f;
    transform: translateY(-2px);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

/* Admin Layout */
.admin-layout {
    display: none;
    min-height: 100vh;
}

.admin-layout.active {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sidebar.collapsed .sidebar-header {
    padding: 24px 12px;
    justify-content: center;
}

.sidebar-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-logo {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--graphite);
    border-radius: 6px;
    transition: all 0.2s;
    position: absolute;
    right: 12px;
    min-width: 36px;
    min-height: 36px;
}

.sidebar-toggle:hover {
    background: var(--light);
    color: var(--primary-red);
}

.sidebar.collapsed .sidebar-toggle {
    position: static;
    margin: 0 auto;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--graphite);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.sidebar.collapsed .nav-item {
    padding: 14px;
    justify-content: center;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    position: absolute;
}

.nav-item span {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.nav-item:hover {
    background: var(--light);
}

.nav-item.active {
    background: rgba(213, 60, 45, 0.1);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid var(--light);
}

.sidebar.collapsed .sidebar-footer {
    padding: 20px 12px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    transition: margin-left 0.3s ease;
    padding-top: var(--topbar-height);
}

.admin-layout.collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.topbar {
    background: var(--white);
    padding: 20px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    z-index: 90;
    transition: left 0.3s ease;
}

.admin-layout.collapsed .topbar {
    left: var(--sidebar-collapsed-width);
}

.topbar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.content-area {
    padding: 32px;
    margin-top: 0;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.visitors {
    background: rgba(30, 58, 138, 0.1);
    color: var(--deep-blue);
}

.stat-icon.users {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
}

.stat-icon.orders {
    background: rgba(213, 60, 45, 0.1);
    color: var(--primary-red);
}

.stat-icon.returns {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 13px;
    color: var(--emerald);
}

.stat-change.negative {
    color: #ef4444;
}

/* Kanban Board */
.kanban-toggles {
    position: fixed;
    top: var(--topbar-height);
    left: calc(var(--sidebar-width) + 32px);
    right: 32px;
    background: var(--light);
    padding: 16px 0;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 99;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.select-small {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--graphite);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}



.select-small:focus {
    outline: none;
}

.admin-layout.collapsed .kanban-toggles {
    left: calc(var(--sidebar-collapsed-width) + 32px);
}

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 60px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    color: #94a3b8;
    margin-bottom: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: #64748b;
}

.kanban-column {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    padding-bottom: 12px;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid var(--light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kanban-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-count {
    background: var(--light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.kanban-card {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.kanban-card-content {
    flex: 1;
    cursor: pointer;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-card-amount {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.kanban-card-id {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 14px;
    margin-bottom: 8px;
}

.kanban-card-customer {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.kanban-card-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

.kanban-card-phone {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kanban-card-delivery {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kanban-card-payment {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kanban-card-tracking {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.kanban-card-items {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kanban-card-address {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.kanban-card-items-total {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kanban-card-delivery-cost {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.kanban-card-comment {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    font-style: italic;
}

.kanban-card-confirm-payment {
    margin-top: 8px;
    width: 100%;
    font-size: 12px;
    padding: 6px 12px;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--light);
}

.kanban-card-reason {
    margin-top: 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

.kanban-card-paid {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.kanban-card-paid.yes {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
}

.kanban-card-paid.no {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Status Colors */
.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-atwork {
    background: #e0e7ff;
    color: #4338ca;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-readyforpickup {
    background: #fce7f3;
    color: #9f1239;
}

.status-shipped {
    background: #ddd6fe;
    color: #5b21b6;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-refunded {
    background: #fef3c7;
    color: #92400e;
}

.status-returnrequested {
    background: #e0f2fe;
    color: #075985;
}

.status-returnapproved {
    background: #dcfce7;
    color: #166534;
}

.status-returnintransit {
    background: #e0e7ff;
    color: #3730a3;
}

.status-returnreceived {
    background: #ede9fe;
    color: #5b21b6;
}

.status-returninspection {
    background: #fce7f3;
    color: #9d174d;
}

.status-returnrefunded {
    background: #fef9c3;
    color: #854d0e;
}

.status-completed {
    background: #bbf7d0;
    color: #14532d;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Специальная структура для модального окна товара */
#productModal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 24px;
    color: #64748b;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Для модального окна товара body должен быть скроллируемым */
#productModal .modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Footer всегда видим снизу для модального окна товара */
#productModal .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--white);
    z-index: 10;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
}

.detail-label {
    font-weight: 600;
    color: #64748b;
}

.detail-value {
    font-weight: 600;
}

.order-items-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--light);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.order-items-table {
    border: 1px solid var(--light);
    border-radius: 12px;
    overflow: hidden;
}

.order-item-row {
    display: grid;
    grid-template-columns: 1fr 80px 120px 120px;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid var(--light);
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-row-header {
    background: var(--light);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #64748b;
}

.order-item-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-title {
    font-weight: 600;
}

.order-item-sku {
    font-size: 12px;
    color: #94a3b8;
}

.order-item-qty,
.order-item-price,
.order-item-total {
    font-weight: 600;
    text-align: right;
}

.order-item-row-header .order-item-qty,
.order-item-row-header .order-item-price,
.order-item-row-header .order-item-total {
    font-weight: 700;
}

.order-items-empty {
    padding: 20px;
    border: 1px dashed var(--light);
    border-radius: 12px;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .order-item-row {
        grid-template-columns: 1fr 60px 90px 90px;
    }
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.btn-small {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add {
    background: var(--primary-red);
    color: var(--white);
}

.btn-add:hover {
    background: #c2321f;
}

.btn-filter {
    background: var(--light);
    color: var(--graphite);
}

.btn-filter:hover {
    background: #e2e8f0;
}

/* Table Card */
.table-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.table-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px 16px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    min-width: 250px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light);
}

th {
    padding: 16px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--graphite);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--light);
    font-size: 14px;
}

tr:hover {
    background: rgba(241, 245, 249, 0.5);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-edit {
    background: rgba(30, 58, 138, 0.1);
    color: var(--deep-blue);
}

.btn-edit:hover {
    background: rgba(30, 58, 138, 0.2);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--light);
}

.product-image-placeholder {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.chart-card canvas {
    flex: 1;
    max-height: 100%;
    max-width: 100%;
}

/* Photo Upload */
.photo-preview-container {
    margin-bottom: 20px;
}

.photo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.photo-preview-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--graphite);
}

.main-photo-preview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--light);
    margin-bottom: 16px;
}

.additional-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.additional-photo-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--light);
}

.additional-photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.additional-photo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--white);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.additional-photo-remove:hover {
    background: rgba(220, 38, 38, 0.85);
}

.additional-photos-empty {
    padding: 20px;
    border: 2px dashed var(--light);
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 500;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.additional-photos-section {
    margin-top: 24px;
}

.photo-upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.photo-upload-btn:hover {
    background: #c2321f;
}

.photo-upload-btn-secondary {
    background: var(--light);
    color: var(--graphite);
    border: 1px solid var(--border);
}

.photo-upload-btn-secondary:hover {
    background: #e2e8f0;
    color: var(--graphite);
}

.photo-upload-input {
    display: none;
}

.photo-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: var(--light);
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-bottom: 16px;
}

.photo-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.table-card,
.kanban-column {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        flex-direction: column;
    }

    .kanban-column {
        flex: 1 1 auto;
    }
}