body {
            background: linear-gradient(0deg, #0e5894, #f9fafb, #f9fafb);
            min-height: 100vh;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
        }

        /* ===== HATA MESAJLARI ===== */
        .error-alert {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            max-width: 400px;
            animation: slideInRight 0.5s ease-out;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .error-alert .alert {
            border-left: 5px solid #dc3545;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        /* ===== CAROUSEL ===== */
        .carousel-container {
            position: relative;
            height: 350px;
            overflow: hidden;
            border-radius: 12px;
            background: #000;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .carousel-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            z-index: 1;
        }

        .carousel-slide.active {
            opacity: 1;
            z-index: 2;
        }

        .slide-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .slide-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 25px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
        }

        .slide-overlay h4 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .slide-overlay p {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 0;
        }

        .carousel-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 3;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: white;
            transform: scale(1.2);
        }

        .carousel-controls {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 15px;
            z-index: 3;
        }

        .carousel-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .carousel-btn:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.1);
        }

        /* ===== ANNOUNCEMENTS ===== */
        .announcement-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 25px;
        }

        .announcement-header {
            background: linear-gradient(135deg, #0e5894, #0e5894);
            color: white;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .announcement-title {
            font-size: 1.2rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
        }

        .announcement-list {
            max-height: 350px;
            overflow-y: auto;
        }

        .announcement-item {
            padding: 18px 20px;
            border-bottom: 1px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .announcement-item:hover {
            background: #f9fafb;
            transform: translateX(5px);
        }

        .announcement-item:last-child {
            border-bottom: none;
        }

        .announcement-icon {
            color: #10b981;
            font-size: 1.2rem;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .announcement-content {
            flex: 1;
        }

        .announcement-item-title {
            font-weight: 600;
            font-size: 1rem;
            color: #111827;
            margin-bottom: 5px;
            display: block;
        }

        .announcement-item-date {
            font-size: 0.85rem;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* ===== MODAL RESİMLERİ ===== */
        .announcement-images {
            display: flex;
            gap: 10px;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .announcement-image {
            width: 150px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .announcement-image:hover {
            transform: scale(1.05);
        }

        .image-modal .modal-dialog {
            max-width: 90%;
            max-height: 90vh;
        }

        .image-modal .modal-content {
            background: white;
            border: none;
            width: auto;
               position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
            
        }

        .image-modal .modal-body {
            padding: 0;
            text-align: center;
        }

        .image-modal .modal-image {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
        }

        /* ===== LOGIN FORM ===== */
        .login-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        /* Logo ve Başlıklar için yeni stil */
        .login-logo-section {
            background: linear-gradient(135deg, #f7f7f7, #f7f7f7);
            color: white;
            padding: 10px;
            text-align: center;
           
        }

        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            margin-bottom: 0px;
             border-bottom: #556cdc;
        }

        .logo-img {
            max-height: 110px;
            width: auto;
            width: auto;
            background: transparent;
            padding: 0px;
            border-radius: 0px;
        }

        .logo-text {
            text-align: center;
            background-color: #0e5894;
             width: 100%;
             color:white;
        }

        .logo-text h1 {
            font-size: 1.0rem;
            font-weight: 400;
            margin-bottom: 0px;
            padding: 8px;
            color: #fffefe;
            width: 100%;
        }

        .logo-text h2 {
            font-size: 1.1rem;
            font-weight: 600;
            opacity: 0.9;
            margin-bottom: 0;
            color: #333;
        }

        .system-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: white;
            border-top: 1px solid rgba(255,255,255,0.2);
            padding-top: 15px;
        }

        .institution-name {
            font-size: 0.9rem;
            opacity: 0.9;
            margin: 0;
            color: white;
        }

        .login-body {
            padding: 25px;
        }

        .login-form-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 25px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        /* ===== FORM INPUTS ===== */
        .form-group {
            margin-bottom: 5px;
        }

        .form-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 1px;
            display: block;
        }

        .input-container {
            position: relative;
            width: 100%;
        }

        .input-icon {
            position: absolute;
            left: 2px;
            top: 50%;
            transform: translateY(-50%);        
            color: #6b7280;
            font-size: 16px;
            z-index: 1;
            pointer-events: none;
         


        }

        .form-control {
            width: 95%;
            height: 35px;
            padding: 0 15px 0 20px;
            border: 2px solid #e5e7eb;
            border-radius: 8px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            background: #f9fafb;
            box-sizing: border-box;
        }

        .form-control:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
            background: white;
        }

        .form-control::placeholder {
            color: #9ca3af;
        }

        /* Password toggle */
        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #6b7280;
            cursor: pointer;
            padding: 5px;
            z-index: 2;
            font-size: 16px;
        }

        /* ===== CAPTCHA ===== */
        .captcha-container {
            background: #f3f4f6;
            border-radius: 8px;
            padding: 5px;
            margin: 5px 0;
            text-align: center;
        }

        .captcha-display {
            font-family: 'Courier New', monospace;
            font-size: 1.1rem;
            font-weight: 700;
            color: #4f46e5;
            letter-spacing: 3px;
            margin-bottom: 1px;
            user-select: none;
            background: white;
            padding: 1px;
            border-radius: 6px;
            border: 2px dashed #d1d5db;
            display: inline-block;
            min-width: 150px;
        }

        .captcha-input {
            text-align: center;
            font-weight: 600;
            letter-spacing: 1px;
            font-size: 1rem;
        }

        /* CAPTCHA Yenile Butonu */
        .refresh-captcha {
            background: none;
            border: none;
            color: #4f46e5;
            cursor: pointer;
            font-size: 1.2rem;
            margin-left: 10px;
            transition: all 0.3s ease;
        }

        .refresh-captcha:hover {
            color: #4338ca;
            transform: rotate(45deg);
        }

        /* ===== BUTTON ===== */
        .login-button {
            width: 100%;
            height: 35px;
            background: linear-gradient(135deg, #0e5894, #0e5894);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .login-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(79,70,229,0.4);
        }

        .login-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none !important;
        }

        /* ===== FOOTER ===== */
        .login-footer {
            padding: 5px 5px;
            background: #f9fafb;
            text-align: center;
            border-top: 1px solid #e5e7eb;
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 5px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: #6b7280;
            font-size: 0.85rem;
        }

        .copyright {
            color: #6b7280;
            font-size: 0.8rem;
            margin-top: 10px;
        }

        /* ===== MODAL ===== */
        .modal-content {
            border-radius: 12px;
            overflow: hidden;
        }

        .modal-header {
            background: linear-gradient(135deg, #0e5894, #0e5894);
            color: white;
            border-bottom: none;
            padding: 10px 10px;
        }

        .modal-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin: 0;
        }

        .modal-body {
            padding: 25px;
        }

        .modal-date {
            font-size: 0.9rem;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
        }

        .modal-description {
            font-size: 1rem;
            line-height: 1.6;
            color: #374151;
        }

        .modal-description a {
            color: #0e5894;
            text-decoration: none;
            font-weight: 500;
        }

        .modal-description a:hover {
            text-decoration: underline;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .carousel-container {
                height: 280px;
            }
            
            .announcement-list {
                max-height: 300px;
            }
            
            .login-logo-section {
                padding: 20px;
            }
            
            .logo-text h1 {
                font-size: 1.1rem;
            }
            
            .logo-text h2 {
                font-size: 1rem;
            }
            
            .system-title {
                font-size: 1.2rem;
            }
            
            .login-body {
                padding: 20px;
            }
            
            .form-control {
                height: 44px;
                padding: 0 15px 0 42px;
            }
            
            .input-icon {
                left: 12px;
                font-size: 15px;
            }
            
            .announcement-image {
                width: 120px;
                height: 80px;
            }
        }

        @media (max-width: 576px) {
            body {
                padding: 15px;
            }
            
            .carousel-container {
                height: 220px;
            }
            
            .slide-overlay {
                padding: 15px;
            }
            
            .slide-overlay h4 {
                font-size: 1.2rem;
            }
            
            .slide-overlay p {
                font-size: 0.9rem;
            }
            
            .login-form-title {
                font-size: 1.1rem;
            }
            
            .captcha-display {
                font-size: 1.2rem;
                letter-spacing: 2px;
                min-width: 120px;
            }
            
            .announcement-image {
                width: 100px;
                height: 70px;
            }
            
            .logo-img {
                max-height: 70px;
                width: auto;
                background: rgba(255,255,255,0.95);
                padding: 8px;
                border-radius: 8px;
                box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            }
        }

        /* ===== MAIN LAYOUT ===== */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 25px;
            align-items: start;
        }

        @media (max-width: 1024px) {
            .main-layout {
                grid-template-columns: 1fr;
            }
            
            .login-card {
                max-width: 500px;
                margin: 0 auto;
            }
        }





        /* ============================================
   YARIŞMA GERİ SAYIM MODAL STİLLERİ
   ============================================ */

/* Countdown kartları */
.countdown-card {
    border: none;
    border-left: 4px solid #28a745;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.countdown-card.expired {
    border-left-color: #dc3545;
    background-color: #f8f9fa;
}

.countdown-card.expired .card-body {
    opacity: 0.7;
}

.countdown-card.urgent {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Zaman gösterimi */
.time-values {
    font-size: 1.1em;
    font-weight: bold;
    color: #e74c3c;
}

.time-values span {
    display: inline-block;
    min-width: 25px;
    text-align: center;
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 4px;
    margin: 0 2px;
}

.time-values .days { color: #e74c3c; }
.time-values .hours { color: #3498db; }
.time-values .minutes { color: #2ecc71; }
.time-values .seconds { color: #9b59b6; }

/* Ana buton */
#showCountdownBtn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    padding: 5px 15px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 5px auto;
}

#showCountdownBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

#showCountdownBtn .badge {
    font-size: 0.9em;
    padding: 5px 10px;
    background: white !important;
    color: #e74c3c !important;
}

/* Modal içeriği */
#countdownContainer {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

#countdownContainer::-webkit-scrollbar {
    width: 6px;
}

#countdownContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#countdownContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Countdown modal header */
.modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.modal-title i {
    margin-right: 10px;
}

/* Modal footer */
.modal-footer {
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .countdown-card .row > div {
        margin-bottom: 10px;
    }
    
    .countdown-card .text-end {
        text-align: left !important;
    }
    
    #showCountdownBtn {
        padding: 12px 20px;
        font-size: 1em;
        width: 90%;
    }
    
    .time-values {
        font-size: 1em;
    }
    
    .time-values span {
        min-width: 20px;
        padding: 1px 3px;
    }
}

@media (max-width: 576px) {
    #showCountdownBtn {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    #countdownContainer {
        padding: 15px;
    }
    
    .countdown-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .countdown-card .badge {
        margin-bottom: 5px;
    }
}

/* Hata ve uyarı mesajları için */
.alert-warning i,
.alert-danger i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Loading spinner */
.spinner-border.text-primary {
    width: 3rem;
    height: 3rem;
}
