/* BAİBÜ Mesai Dışı Çalışma Başvuru Formu - Modern CSS */
/* Profesyonel, Responsive, Kullanıcı Dostu */

:root {
    /* Ana Renkler */
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --success-color: #27AE60;
    --success-hover: #229954;
    --danger-color: #E74C3C;
    --danger-hover: #C0392B;
    --warning-color: #F39C12;
    --warning-bg: #FFF3CD;
    --warning-border: #FFC107;
    
    /* Beyaz Tonlar */
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-lighter: #F2F4F6;
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #95A5A6;
    --border-color: #E0E6ED;
    
    /* Gölgeler */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    /* Animasyonlar */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 50%, #90CAF9 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Dekoratif Arka Plan Şekilleri - Login ile aynı */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    width: 300px;
    height: 300px;
    background: var(--primary-hover);
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Admin Icon Link */
.admin-icon-link {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
    cursor: pointer;
    text-decoration: none;
}

.admin-icon-link:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.admin-icon-link:hover .admin-icon {
    color: var(--white);
}

.admin-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Form Wrapper */
.form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    animation: fadeIn 0.6s ease-out;
    backdrop-filter: blur(10px);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    margin: -40px -40px 40px -40px;
    padding: 40px 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.logo {
    margin-bottom: 25px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5);
    }
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease-out;
}

.alert-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.alert i {
    font-size: 1.3rem;
}

.alert-success {
    background: linear-gradient(135deg, #D5F4E6, #A8E6CF);
    color: var(--success-color);
    border: 2px solid var(--success-color);
    border-left-width: 4px;
}

.alert-error {
    background: linear-gradient(135deg, #FADBD8, #F5B7B1);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    border-left-width: 4px;
}

.alert-warning {
    background: var(--warning-bg);
    color: #856404;
    border: 2px solid var(--warning-border);
    border-left-width: 4px;
}

/* Form */
.mesai-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
    margin-left: 4px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="date"]:hover,
select:hover {
    border-color: var(--primary-hover);
}

input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

input[readonly] {
    background: var(--bg-light);
    cursor: not-allowed;
    color: var(--text-medium);
}

/* Select */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6C7D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Form Hint */
.form-hint {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* reCAPTCHA */
.g-recaptcha {
    display: inline-block;
}

/* Submit Button */
.btn-submit {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit .btn-loader {
    display: none;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 400px;
    animation: slideInModal 0.4s ease-out;
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: var(--primary-color);
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: var(--primary-hover);
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: var(--success-color);
}

.spinner-ring:nth-child(4) {
    animation-delay: 0s;
    border-top-color: rgba(74, 144, 226, 0.3);
}

.loading-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.loading-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease-out;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideInModal 0.4s ease-out;
}

.modal-content h2 {
    color: var(--danger-color);
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-content button {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-hover));
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Rezervasyon Uyarıları */
#rezervasyon_uyarilari {
    margin-top: 15px;
}

#rezervasyon_detaylari {
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .form-header {
        margin: -30px -20px 30px -20px;
        padding: 35px 20px;
    }
    
    .logo-icon {
        width: 75px;
        height: 75px;
        padding: 16px;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .admin-icon-link {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .admin-icon {
        width: 24px;
        height: 24px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="date"],
    select {
        padding: 12px 16px;
    }
    
    .btn-submit {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .form-header {
        margin: -25px -20px 25px -20px;
        padding: 30px 15px;
    }
    
    .form-header h1 {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 65px;
        height: 65px;
        padding: 14px;
    }
    
    .loading-content {
        padding: 30px 20px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-medium);
}

