* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.form-group input[type="submit"] {
    background: #3498db;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.form-group input[type="submit"]:hover {
    background: #2980b9;
}

.toggle-auth {
    text-align: center;
    margin-top: 15px;
}

.toggle-auth a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.toggle-auth a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: 100vh;
}

.sidebar {
    background: #2c3e50;
    color: white;
    padding: 20px;
    position: fixed;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #34495e;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card.salary {
    border-left-color: #e74c3c;
}

.stat-card.expense {
    border-left-color: #f39c12;
}

.stat-card.revenue {
    border-left-color: #27ae60;
}

.stat-card.profit {
    border-left-color: #9b59b6;
}

.stat-card h3 {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .amount {
    color: #2c3e50;
    font-size: 32px;
    font-weight: bold;
}

/* Demo/Premium Card */
.demo-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.demo-card img {
    height: 60px;
    width: 60px;
    flex-shrink: 0;
}

.demo-card-content {
    flex: 1;
}

.demo-card-content h3 {
    color: #856404;
    margin-bottom: 5px;
}

.demo-card-content p {
    color: #856404;
    font-size: 14px;
    margin-bottom: 8px;
}

.demo-card-content a {
    color: #856404;
    font-weight: bold;
    text-decoration: none;
}linear-gradient(135deg, #ffe6e6 0%, #fff0f0 100%);
    border: 2px solid #f5c6cb;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(247, 69, 69, 0.15)f5c6cb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.expired-card h3 {
    color: #721c24;
    margin-bottom: 15px;
}

.expired-card-content {
    display: flex;
    gap: 30px;
}

.expired-card-logo {
    text-align: center;
}

.expired-card-logo img {
    height: 80px;
    margin-bottom: 10px;
}

.expired-card-text h4 {
    color: #721c24;
    margin-bottom: 10px;
}

.expired-card-text p {
    color: #721c24;
    font-size: 14px;
    margin-bottom: 10px;
}

.expired-card-text .phone {
    font-weight: bold;
    color: #721c24;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th {
    background: #ecf0f1;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #bdc3c7;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

table tr:hover {
    background: #f5f7fa;
}

table .action-btn {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.approve-btn {
    background: #27ae60;
    color: white;
}

.approve-btn:hover {
    background: #229954;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Notifications */
.notification {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

/* Burger Menu */
.burger-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2c3e50;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    /* Mobile Navigation Dropdown */
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 0;
        gap: 0;
        border-top: 1px solid #ecf0f1;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f5f7fa;
    }

    .nav-links a {
        padding: 15px;
        display: block;
        width: 100%;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .expired-card-content {
        flex-direction: column;
    }

    .demo-card {
        flex-direction: column;
    }

    .sidebar-menu a {
        padding: 10px 12px;
        font-size: 14px;
    }

    table {
        font-size: 13px;
        table-layout: fixed;
    }

    table th,
    table td {
        padding: 10px 8px;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    
    .card {
        overflow-x: auto;
    }

    .auth-box {
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .stat-card .amount {
        font-size: 24px;
    }

    .main-content {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }
}
