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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #2c2f33;
    padding: 1rem 0;
    border-bottom: 2px solid #7289da;
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7289da;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #7289da;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background-color: #2c2f33;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #7289da;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.error-message {
    background-color: #f44336;
    color: white;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #b9bbbe;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"] {
    padding: 10px;
    border: 1px solid #40444b;
    border-radius: 4px;
    background-color: #2c2f33;
    color: #ffffff;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #7289da;
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #7289da;
    color: white;
}

.btn-primary:hover {
    background-color: #5b6eae;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Page Headers */
.dashboard-header,
.page-header {
    margin-bottom: 30px;
}

.dashboard-header h1,
.page-header h1 {
    color: #7289da;
    margin-bottom: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #2c2f33;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #40444b;
}

.stat-card h3 {
    color: #b9bbbe;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #7289da;
}

/* Sections */
.section {
    background-color: #2c2f33;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #40444b;
}

.section h2 {
    color: #7289da;
    margin-bottom: 20px;
}

.section h3 {
    color: #b9bbbe;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table thead {
    background-color: #23272a;
}

.data-table th {
    padding: 12px;
    text-align: left;
    color: #7289da;
    font-weight: 600;
    border-bottom: 2px solid #40444b;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #40444b;
    color: #ffffff;
}

.data-table tbody tr:hover {
    background-color: #23272a;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tab {
    padding: 8px 16px;
    background-color: #23272a;
    color: #b9bbbe;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.tab:hover {
    background-color: #40444b;
}

.tab.active {
    background-color: #7289da;
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #2c2f33;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #40444b;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #b9bbbe;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}
