﻿/* 🎯 TABLET MODAL STİLLERİ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 85vh;
    width: 700px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    padding: 24px 28px 20px;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .modal-header h3::before {
            content: "📋";
            font-size: 1.2rem;
        }

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

/* Modal Body */
.modal-body {
    padding: 28px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fafbfc;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

    .modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: #f7fafc;
        border-radius: 4px;
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 4px;
    }

/* Modal Sections */
.modal-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

    .modal-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, #667eea, #764ba2);
    }

.modal-section-title {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .modal-section-title i {
        color: #667eea;
        font-size: 1.1rem;
    }

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    padding: 16px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    font-size: 0.95rem;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

    .info-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

    .info-item strong {
        color: #2d3748;
        font-weight: 600;
    }

/* Items Grid */
.modal-items-grid {
    display: grid;
    gap: 16px;
}

.modal-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border-left: 5px solid #48bb78;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .modal-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(56, 178, 172, 0.05) 100%);
        z-index: 0;
    }

    .modal-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(72, 187, 120, 0.2);
    }

.modal-item-quantity {
    background: linear-gradient(135deg, #48bb78, #38b2ac);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
    z-index: 1;
    position: relative;
}

.modal-item-info {
    flex: 1;
    z-index: 1;
    position: relative;
}

.modal-item-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.modal-item-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Modal Footer */
.modal-footer {
    padding: 24px 28px;
    border-top: 2px solid #eef2f7;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

.btn-outline {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.4);
}

    .btn-outline:hover {
        background: linear-gradient(135deg, #4a5568, #2d3748);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(113, 128, 150, 0.6);
    }

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

    .btn-success:hover {
        background: linear-gradient(135deg, #38a169, #2f855a);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(72, 187, 120, 0.6);
    }

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95vw;
        margin: 10px;
        max-height: 95vh;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .modal-header, .modal-body, .modal-footer {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading states */
.modal-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

    .modal-item.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 20px;
        width: 20px;
        height: 20px;
        border: 2px solid #e2e8f0;
        border-top: 2px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        transform: translateY(-50%);
    }

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Animation improvements */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay.show .modal-container {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* 🎉 WELCOME MODAL STİLLERİ */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 1;
    visibility: visible;
    animation: welcomeFadeIn 0.5s ease;
}

.welcome-modal-container {
    background: white;
    border-radius: 25px;
    max-width: 600px;
    width: 90vw;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: welcomeSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

    .welcome-modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
    }

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    animation: welcomeBounce 2s infinite;
}

.welcome-modal-header h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.welcome-modal-body {
    padding: 35px;
}

.welcome-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.department-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.tablet-info, .login-time {
    margin: 10px 0;
    font-size: 1rem;
    color: #495057;
}

.welcome-features {
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #495057;
    font-size: 1rem;
}

    .feature-item i {
        width: 20px;
        color: #667eea;
        font-size: 1.1rem;
    }

.welcome-note {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border-left: 4px solid #667eea;
}

    .welcome-note i {
        color: #667eea;
        margin-right: 10px;
    }

    .welcome-note p {
        margin: 0;
        color: #495057;
        line-height: 1.6;
    }

.welcome-modal-footer {
    padding: 25px 35px 35px;
    text-align: center;
}

.btn-welcome-start {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    position: relative;
    overflow: hidden;
}

    .btn-welcome-start::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn-welcome-start:hover {
        background: linear-gradient(135deg, #218838, #1e9b83);
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(40, 167, 69, 0.6);
    }

        .btn-welcome-start:hover::before {
            left: 100%;
        }

    .btn-welcome-start:active {
        transform: translateY(-1px);
    }

/* Animations */
@keyframes welcomeFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes welcomeBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Modal kapanma animasyonu */
.welcome-modal-overlay.closing {
    animation: welcomeFadeOut 0.4s ease forwards;
}

    .welcome-modal-overlay.closing .welcome-modal-container {
        animation: welcomeSlideOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
    }

@keyframes welcomeFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes welcomeSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-modal-container {
        width: 95vw;
        margin: 10px;
    }

    .welcome-modal-header {
        padding: 30px 20px 20px;
    }

        .welcome-modal-header h2 {
            font-size: 1.8rem;
        }

    .welcome-icon {
        font-size: 3rem;
    }

    .welcome-modal-body {
        padding: 25px;
    }

    .welcome-modal-footer {
        padding: 20px 25px 25px;
    }
}