/* ============ ÜLDINE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============ NAVIGATSIOON ============ */
.navbar {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 60%, #3498db 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(26, 35, 50, 0.3);
    border-bottom: 3px solid rgba(52, 152, 219, 0.3);
}

.navbar-brand {
    color: #fff !important;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #3498db !important;
}

.navbar-brand i {
    color: #3498db;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Keele valik */
.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    background: #1a2332;
    border: 1px solid #2c3e50;
    border-radius: 8px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #2c3e50;
    color: #fff;
}

.dropdown-item img {
    margin-right: 10px;
}

/* ============ SISU ============ */
#pageContent {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    min-height: 400px;
    animation: fadeInUp 0.5s ease;
}

#pageContent h1 {
    color: #1a2332;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

#pageContent p {
    line-height: 1.8;
    color: #555;
}

#pageContent img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

#pageContent ul, #pageContent ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#pageContent h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#pageContent h3 {
    color: #1a2332;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* ============ FOOTER ============ */
.footer {
    margin-top: auto;
    background: #1a2332;
    color: #8898aa;
    padding: 2rem 0 !important;
    border-top: 3px solid #2c3e50;
}

.footer a {
    color: #8898aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #3498db;
}

/* ============ MODAALID ============ */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid #3498db;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
}

/* Kontakt modal */
.contact-options .btn {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-options .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ============ TEATE ALAD ============ */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============ ANIMATSIOONID ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    #pageContent {
        padding: 1rem;
    }
    
    #pageContent h1 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .contact-options .btn {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* ============ SPETSIIFILISED ============ */
/* Telefoni verifitseerimine */
#phoneVerificationForm .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#phoneVerificationForm .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#phoneVerificationForm .btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

#resendCodeBtn {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

#resendCodeBtn:hover {
    background: #3498db;
    color: #fff;
}

/* Login ja Register vormid */
#loginForm .form-control,
#registerForm .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#loginForm .form-control:focus,
#registerForm .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#loginForm .btn,
#registerForm .btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border: none;
    transition: all 0.3s ease;
}

#loginForm .btn:hover,
#registerForm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* ============ SKROLLIMISRIBA ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f4f6f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a2332;
}

.dropdown-item-text{
color: white !important;
}