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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white; 
    color: #000000;   
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: #1B1D33; 
    border-bottom: 1px solid #575863;
    padding: 0.2rem 0;    
    --bs-navbar-color: rgba(255, 255, 255, 0.85);
    --bs-navbar-hover-color: #6C6F8E;
    --bs-navbar-brand-color: #ffffff;
    --bs-nav-link-color: rgba(255, 255, 255, 0.85);
    --bs-nav-link-hover-color: #6C6F8E;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.navbar-text {
    color: #E0E0E0; 
    font-weight: 600;
    font-size: 1rem;
}

h1, h2, h3, h4, h6 {
    color: #1B1D33; 
    margin-bottom: 1rem;
    font-weight: 700;
}

.my-dropdown-menu,
.dropdown-menu {
    --bs-dropdown-bg: #282939;
    --bs-dropdown-link-color: #E0E0E0;
    --bs-dropdown-link-hover-color: #FFFFFF;
    --bs-dropdown-link-hover-bg: #575863;
    border-color: #575863 !important;
}

.my-dropdown-item {
    padding: .5rem 1rem;
    display: block;
    text-decoration: none;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
    font-size: 1rem;
}

.my-dropdown-item:focus,
.my-dropdown-item:active,
.my-dropdown-item.active {
    background-color: #6C6F8E; 
    color: #fff;
    outline: none;
    box-shadow: none;
}

input, select, textarea {
    border: 1px solid #575863;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
    max-width: 100%;
    background-color: #ebebeb;
    color: black;
}

input:focus, select:focus, textarea:focus {
    border-color: #6C6F8E;
    outline: none;
    box-shadow: 0 0 6px rgba(108, 111, 142, 0.3);
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #1B1D33; 
    color: #6C6F8E;    
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid #575863;
}

footer a {
    color: #6C6F8E;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #E0E0E0;
}

.card {
    background-color: #ffffff; 
    border-color: #e0e0e0;
    
}

.card-header.card-bg {
    background-color: #1B1D33;
    color: #E0E0E0;
}

.bottom-form {
    background-color: #575863; 
    color: #000000;
    border: 1px solid #6C6F8E;
}

[data-bs-theme="dark"] body {
    background-color: #121212 !important; 
    color: #E0E0E0 !important; 
}

[data-bs-theme="dark"] .navbar {
    background-color: #1E1E1E !important; 
    border-color: #333 !important;    
    --bs-navbar-color: rgba(255, 255, 255, 0.65);
    --bs-navbar-hover-color: rgba(255, 255, 255, 0.85);
    --bs-navbar-brand-color: rgba(255, 255, 255, 0.95);
    --bs-nav-link-color: rgba(255, 255, 255, 0.65);
    --bs-nav-link-hover-color: rgba(255, 255, 255, 0.85);
}
[data-bs-theme="dark"] .navbar-text {
     color: rgba(255, 255, 255, 0.65);
}

[data-bs-theme="dark"] .my-dropdown-menu,
[data-bs-theme="dark"] .dropdown-menu {
    --bs-dropdown-bg: #1E1E1E;
    --bs-dropdown-link-color: #E0E0E0;
    --bs-dropdown-link-hover-color: #FFFFFF;
    --bs-dropdown-link-hover-bg: #333;
    border-color: #333 !important;
}

[data-bs-theme="dark"] .card {
    background-color: #1E1E1E !important; 
    border-color: #333 !important;       
}

[data-bs-theme="dark"] .card-header.card-bg {
    background-color: #333333 !important; 
    color: #F0F0F0 !important;           
}

[data-bs-theme="dark"] .bottom-form {
    background-color: #2D2D2D !important; 
    color: #E0E0E0 !important;
    border-color: #444 !important;
}

[data-bs-theme="dark"] .form-control {
    background-color: #2D2D2D !important;
    color: #F0F0F0 !important;
    border-color: #444 !important;
}

[data-bs-theme="dark"] footer {
    background-color: #1E1E1E !important;
    color: #7f8c8d !important;
    border-top: 1px solid #333 !important;
}

[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h6 {
    color: #ffffff;
}