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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Header & Navigation */
.header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 2px solid #3498db;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: #2c3e50;
    color: #fff;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
}

.table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.table tbody tr:hover {
    background: #e9ecef;
}

/* Dashboard */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1 1 250px;
    min-width: 250px;
    max-width: calc(25% - 1.5rem);
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.dashboard-card .stat {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin: 1rem 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #27ae60;
    color: #fff;
}

.badge-danger {
    background: #e74c3c;
    color: #fff;
}

.badge-warning {
    background: #f39c12;
    color: #fff;
}

.badge-info {
    background: #3498db;
    color: #fff;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-section a:hover {
    color: #3498db;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.package-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.package-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin: 1rem 0;
}

.package-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Admin Sidebar Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    margin: 0;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.8rem;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.25rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
}

.sidebar-link.active-link {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.sidebar-link .icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link .arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.has-submenu.active .arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    list-style: none;
    background: rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.6rem 1.25rem 0.6rem 3rem;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.submenu a.active-link {
    background: rgba(52, 152, 219, 0.3);
    border-left-color: #3498db;
    font-weight: 600;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
}

.user-dropdown {
    margin-bottom: 0.5rem;
}

.user-info-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.user-info-link:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.user-info-link .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.8rem;
}

.user-hint {
    font-size: 0.65rem;
    color: #3498db;
    opacity: 0.8;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.logout-link:hover {
    background: rgba(231, 76, 60, 0.1);
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.admin-content .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex: 1;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-grid {
        flex-direction: column;
    }

    .dashboard-card {
        max-width: 100%;
        min-width: 100%;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .footer {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1rem;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .sidebar-link {
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .sidebar-link:hover {
        border-left: none;
        border-bottom-color: #3498db;
    }
}
