@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --primary-color: #7b2cbf;
    --secondary-color: #3c096c;
    --accent-color: #ffd700;
    /* Gold for Conquer */
    --bg-dark: #0a0a12;
    --bg-card: rgba(20, 20, 35, 0.8);
    --text-light: #e0e0e0;
    --neon-glow: 0 0 10px rgba(123, 44, 191, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    background-image: url('../images/bg-pattern.png'), linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-blend-mode: overlay;
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 44, 191, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
}

.nav-link {
    color: #fff !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-dark);
    border: var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.dropdown-item {
    color: #fff;
    transition: 0.3s;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.header {
    height: 400px;
    background: url('../images/header-bg.jpg') no-repeat center center;
    background-size: contain;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    
    background-color: #f0f0f0;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.logo {
    background: url('../images/logo.png') no-repeat center;
    background-size: contain;
    width: 400px;
    height: 200px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Cards & Boxes */
.box-card,
.box-form {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box-card:hover,
.box-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(123, 44, 191, 0.2);
    border-color: var(--primary-color);
}

.box-card .title,
.box-form .title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.box-card h1,
.box-form h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
}

.box-card h1 i,
.box-form h1 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Lists */
.state-color {
    list-style: none;
    padding: 0;
}

.item-td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-td:last-child {
    border-bottom: none;
}

.item-td i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Spans for colors */
.c1 {
    color: #ff4757;
    font-weight: bold;
}

.c2 {
    color: #2ed573;
    font-weight: bold;
}

.c4 {
    color: #ffa502;
    font-weight: bold;
}

.c5 {
    color: #1e90ff;
    font-weight: bold;
}

.c6 {
    color: #a4b0be;
}

/* Forms */
.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    padding: 12px;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.3);
    color: #fff;
}

.btn-custom {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-custom:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.02);
}

/* Footer */
footer {
    background: #050508;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #222;
    text-align: center;
    color: #777;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border-color: #ff4757;
    color: #ff4757;
}

.alert-good {
    background: rgba(46, 213, 115, 0.1);
    border-color: #2ed573;
    color: #2ed573;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        height: 250px;
    }

    .logo {
        width: 200px;
        height: 100px;
    }
}