/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-blue: #04d9ff;
    --neon-blue-dark: #03b3d4;
    --neon-blue-light: #3de4ff;
    --black: #000000;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --border: #e5e5e5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(4, 217, 255, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    border-bottom: 3px solid var(--neon-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-menu a {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--neon-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
}

.nav-menu .btn::after {
    display: none;
}

/* Fix navigation button hover - ensure text stays black */
.nav-menu .btn:hover {
    color: var(--black) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--neon-blue);
    color: var(--black);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 4px 15px rgba(4, 217, 255, 0.3);
}

.btn-primary:hover {
    background: var(--neon-blue-dark);
    color: var(--black) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(4, 217, 255, 0.5);
}

.btn-secondary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    border-color: var(--dark-gray);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    border: 2px solid var(--neon-blue);
    color: var(--black);
}

.btn-outline:hover {
    background: var(--neon-blue);
    color: var(--black) !important;
    box-shadow: 0 4px 15px rgba(4, 217, 255, 0.3);
}

.btn-danger {
    background: #ff0040;
    color: var(--white);
    border: 2px solid #ff0040;
}

.btn-danger:hover {
    background: #cc0033;
    border-color: #cc0033;
    color: var(--white);
}

.btn-success {
    background: #00e676;
    color: var(--black);
    border: 2px solid #00e676;
}

.btn-success:hover {
    background: #00c862;
    color: var(--black);
}

.btn-warning {
    background: #ffc107;
    color: var(--black);
    border: 2px solid #ffc107;
}

.btn-warning:hover {
    background: #ffb300;
    color: var(--black);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--black);
}

.form-group label strong {
    color: var(--neon-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
    color: var(--black);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(4, 217, 255, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 2px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--neon-blue);
}

.card-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.card-header span {
    color: var(--neon-blue);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

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

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 4px 20px rgba(4, 217, 255, 0.2);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 8px;
}

thead {
    background: var(--off-white);
    border-bottom: 3px solid var(--neon-blue);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 700;
    color: var(--black);
}

td {
    color: var(--black);
}

tbody tr:hover {
    background: var(--off-white);
}

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

.badge-success {
    background: #00e676;
    color: var(--black);
}

.badge-warning {
    background: #ffc107;
    color: var(--black);
}

.badge-danger {
    background: #ff0040;
    color: var(--white);
}

.badge-primary {
    background: var(--neon-blue);
    color: var(--black);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-weight: 600;
}

.alert-success {
    background: #e8f5e9;
    color: #1b5e20;
    border-left-color: #00e676;
}

.alert-error {
    background: #ffebee;
    color: #b71c1c;
    border-left-color: #ff0040;
}

.alert-warning {
    background: #fff8e1;
    color: #f57f17;
    border-left-color: #ffc107;
}

.alert-info {
    background: #e1f5fe;
    color: #01579b;
    border-left-color: var(--neon-blue);
}

/* Loading */
.spinner {
    border: 3px solid var(--light-gray);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--black);
}

.modal-close {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--black);
    font-weight: 700;
}

.modal-close:hover {
    color: var(--neon-blue);
}

/* Highlight/Neon Blue Accents */
.highlight {
    color: var(--neon-blue);
    font-weight: 700;
}

.neon-border {
    border: 2px solid var(--neon-blue);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(4, 217, 255, 0.5);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
