* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f1f5f9;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1e293b;
    color: #fff;
    transition: width 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #334155;
}

.sidebar-header h2 span {
    color: #38bdf8;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.sidebar-nav li a i {
    width: 30px;
    font-size: 1.2rem;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: #334155;
    color: #fff;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.content-wrapper {
    padding: 30px;
    overflow-y: auto;
}

/* Cards & Forms */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Invoice specific */
.invoice-items-table input {
    width: 80px;
    padding: 5px;
}

.invoice-totals {
    text-align: right;
    margin-top: 20px;
}

.invoice-totals p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s;
    }
    .sidebar.active {
        left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .main-content {
        width: 100%;
    }
}

/* Print styles for invoice */
@media print {
    .sidebar, .top-header, .btn, .menu-toggle {
        display: none !important;
    }
    .main-content {
        margin: 0;
        padding: 0;
    }
    .content-wrapper {
        padding: 0;
    }
    body {
        background: #fff;
    }
}


/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-cards .card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.dashboard-cards .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dashboard-cards .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e6f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.dashboard-cards .card-icon i {
    font-size: 28px;
    color: #1890ff;
}

.dashboard-cards .card-content h3 {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 5px;
    font-weight: 500;
}

.dashboard-cards .card-content .count {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
}






