/**
 * Frontend Dolgozói Felület Stílusok
 * Modern, minimalista design pasztell színekkel
 * Referencia: Modern card design with glassmorphism
 */

/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Alapértelmezett értékek */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Fő konténer */
.mjr-frontend-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Fejléc */
.mjr-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.mjr-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Óra konténer */
.mjr-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

#mjr-datum {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#mjr-ido {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

/* Dolgozók grid */
.mjr-dolgozok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Dolgozó kártya - modern, minimalista design */
.mjr-dolgozo-kartya {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mjr-dolgozo-kartya:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Kártya felső rész */
.mjr-profilkep-container {
    padding: 35px 25px 25px 25px;
    text-align: center;
    position: relative;
}

/* Profilkép wrapper */
.mjr-profilkep-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px auto;
    position: relative;
}

.mjr-profilkep-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mjr-profilkep {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kezdőbetűk stílus */
.mjr-nincs-profilkep {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    text-transform: uppercase;
}

/* Állapot badge - modern pozícionálás */
.mjr-allapot-jelzo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: pulse-subtle 3s infinite;
}

.mjr-allapot-jelzo.bent {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
}

.mjr-allapot-jelzo.kint {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
}

.mjr-allapot-jelzo.ebed {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.mjr-allapot-jelzo.tavol {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.mjr-allapot-jelzo.ismeretlen {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
}

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

/* Dolgozó neve */
.mjr-dolgozo-nev {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* Gombok konténer */
.mjr-gombok {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Gombok - modern, minimalista stílus */
.mjr-gomb {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mjr-gomb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mjr-gomb:active::before {
    width: 300px;
    height: 300px;
}

.mjr-gomb:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mjr-gomb:active:not(:disabled) {
    transform: translateY(0);
}

/* Gomb színek - pasztell gradiens */
.mjr-gomb.erkezes {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: white;
}

.mjr-gomb.erkezes:hover:not(:disabled) {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.mjr-gomb.tavozas {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
}

.mjr-gomb.tavozas:hover:not(:disabled) {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.mjr-gomb.ebed {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
}

.mjr-gomb.ebed:hover:not(:disabled) {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.mjr-gomb.vissza {
    background: linear-gradient(135deg, #4fd1c5 0%, #38b2ac 100%);
    color: white;
}

.mjr-gomb.vissza:hover:not(:disabled) {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
}

.mjr-gomb.napkozbeni_tavozas {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
}

.mjr-gomb.napkozbeni_tavozas:hover:not(:disabled) {
    background: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
}

/* Letiltott gomb */
.mjr-gomb:disabled {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* Modal - modern stílus */
.mjr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.mjr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mjr-modal-content {
    background: white;
    border-radius: 28px;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mjr-modal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mjr-modal.success .mjr-modal-icon {
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
}

.mjr-modal.error .mjr-modal-icon {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
}

.mjr-modal-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
}

.mjr-modal-content p {
    font-size: 17px;
    color: #718096;
    font-weight: 500;
    margin: 0;
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Betöltési animáció */
.mjr-loading {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 22px;
    font-weight: 500;
}

.mjr-loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%, 100% {
        content: "...";
    }
}

/* Reszponzív */
@media (max-width: 768px) {
    .mjr-dolgozok-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mjr-header {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .mjr-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .mjr-clock {
        align-items: center;
    }
    
    #mjr-ido {
        font-size: 28px;
    }
    
    .mjr-modal-content {
        padding: 40px 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mjr-dolgozok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .mjr-dolgozok-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1401px) {
    .mjr-dolgozok-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch-friendly gombok mobilon */
@media (hover: none) {
    .mjr-gomb {
        min-height: 64px;
        font-size: 18px;
    }
}
