:root {
    --primary: #333;
    --primary-dark: #000;
    --bg-color: #fcfcfd;
    --text-color: #000;
    --border-color: #eee;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --danger: #e74c3c;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-color);
    margin: 0;
    color: var(--text-color);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    width: 400px;
    max-width: 90%;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.login-logo {
    display: block;
    margin: 0 auto 30px auto;
    max-height: 35px;
    width: auto;
}

h2 {
    text-align: center;
    color: #000;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 14px;
    color: #999;
    font-size: 14px;
}

input {
    display: block;
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    background: #fcfcfd;
    transition: all 0.2s;
    color: #000;
    font-weight: 500;
}

input:focus {
    border-color: #000;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.btn-primary {
    width: 100%;
    height: 48px;
    background: #000;
    color: white;
    border: 1px solid #000;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-msg {
    background: #fff5f5;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ffe3e3;
    display: none;
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

#donemAlani {
    display: none;
}

.donem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
    margin-top: 15px;
}

/* Klasör Şeklindeki Butonlar */
.donem-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.donem-card:hover {
    background: #000;
    border-color: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donem-card i {
    font-size: 18px;
}

.donem-grid::-webkit-scrollbar {
    width: 4px;
}

.donem-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.btn-back-link {
    margin-top: 25px;
    background: none;
    border: 1px solid #eee;
    color: #666;
    width: 100%;
    height: 40px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-back-link:hover {
    background: #f8f9fa;
    color: #000;
    border-color: #ddd;
}

.page-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #999;
    font-size: 11px;
    font-weight: 500;
}

.page-footer img {
    opacity: 0.6;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        width: 95%;
    }

    .donem-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modern Message Modal System */
#modernMsgModal {
    z-index: 999999 !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 95%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    margin: 25px 0;
    line-height: 1.6;
    font-size: 15px;
    color: #475569;
    text-align: center;
    font-weight: 500;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

.modal-footer button {
    padding: 0 25px;
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Button Classes for Modal */
.btn-modern-action {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}

.btn-modern-action:hover {
    background: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-modern-dark {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.btn-modern-dark:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-2px);
}

.btn-modern-danger {
    background: #fff !important;
    color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
}

.btn-modern-danger:hover {
    background: #dc2626 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Global Footer Styling */
#footerLogo {
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s;
}

#footerLogo:hover {
    opacity: 0.8;
}

#footerText {
    color: #94a3b8 !important;
    font-size: 11px;
    font-weight: 500;
}

/* Autofill Override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-internal-autofill-selected {
    appearance: none !important;
    background-image: none !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
}