﻿/* Application Query Page Styles */

.application-query-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    display: flex;
    align-items: center;
}

.query-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
    margin-bottom: 30px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.query-header {
    background: linear-gradient(135deg, #0c4572 0%, #155a8a 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

    .query-header i {
        font-size: 48px;
        margin-bottom: 15px;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.query-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: bold;
}

.query-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.query-body {
    padding: 40px 30px;
}

    .query-body .form-group {
        margin-bottom: 25px;
    }

    .query-body label {
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        display: block;
    }

        .query-body label i {
            margin-right: 8px;
            color: #0c4572;
        }

    .query-body .form-control {
        height: 50px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
        padding: 10px 15px;
    }

        .query-body .form-control:focus {
            border-color: #0c4572;
            box-shadow: 0 0 0 0.2rem rgba(12, 69, 114, 0.15);
        }

.btn-query {
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #0c4572 0%, #155a8a 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12, 69, 114, 0.3);
    width: 100%;
    color: white;
}

    .btn-query:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(12, 69, 114, 0.4);
    }

    .btn-query i {
        margin-right: 8px;
    }

/* Result Card Styles */

.result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.result-header {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 3px solid #dee2e6;
}

    .result-header i {
        font-size: 64px;
        margin-bottom: 15px;
    }

    .result-header.success {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        border-bottom-color: #28a745;
    }

    .result-header.warning {
        background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
        color: white;
        border-bottom-color: #ffc107;
    }

    .result-header.danger {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        border-bottom-color: #dc3545;
    }

    .result-header.info {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        color: white;
        border-bottom-color: #17a2b8;
    }

    .result-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: bold;
    }

.result-body {
    padding: 30px;
}

.student-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

    .info-row:last-child {
        border-bottom: none;
    }

    .info-row .label {
        font-weight: 600;
        color: #666;
    }

    .info-row .value {
        font-weight: 500;
        color: #333;
    }

.status-message {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

    .result-actions .btn {
        flex: 1;
        height: 50px;
        font-weight: 600;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

/* Loading Overlay */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
    color: white;
}

    .loading-spinner .spinner-border {
        width: 64px;
        height: 64px;
        border-width: 5px;
    }

    .loading-spinner p {
        margin-top: 20px;
        font-size: 18px;
        font-weight: 600;
    }

/* Responsive */

@media (max-width: 768px) {
    .application-query-container {
        padding: 30px 15px;
    }

    .query-header {
        padding: 30px 20px;
    }

        .query-header h2 {
            font-size: 24px;
        }

    .query-body {
        padding: 30px 20px;
    }

    /* ✅ Mobil için buton yazı boyutu küçültme */
    .btn-query {
        font-size: 15px;
        height: 48px;
        padding: 0 15px;
    }

        .btn-query i {
            margin-right: 5px;
            font-size: 14px;
        }

    .result-actions {
        flex-direction: column;
    }

        .result-actions .btn {
            width: 100%;
            font-size: 15px;
        }

    .result-header i {
        font-size: 48px;
    }

    .result-header h3 {
        font-size: 20px;
    }

    .status-message {
        font-size: 14px;
        padding: 15px;
    }
}

/* ✅ Çok küçük ekranlar için ekstra düzenleme */
@media (max-width: 380px) {
    .btn-query {
        font-size: 14px;
        height: 46px;
    }

        .btn-query i {
            display: none; /* İkon gizlenir, sadece metin kalır */
        }
}
