/* Face Recognition Attendance - Simple Clean Design v2.1 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Main Container */
.fra-simple-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8edf2;
    overflow: hidden;
}

/* Wrapper - Landscape Layout */
.fra-simple-wrapper {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Panel */
.fra-left-panel {
    flex: 0 0 400px;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f5f7fa;
}

.fra-left-panel h1 {
    font-size: 48px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.2;
}

.fra-left-panel h1 strong {
    font-weight: 700;
    color: #1a1a1a;
}

.fra-subtitle {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Start Button */
.fra-start-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: #16a085;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.fra-start-btn:hover {
    background: #138d75;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

.fra-start-btn:active {
    transform: translateY(0);
}

/* Location Info */
.fra-location-info {
    font-size: 14px;
    color: #7f8c8d;
    padding: 12px 0;
}

.fra-status-info {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.fra-status-info.show {
    display: block;
}

/* Right Panel - Camera */
.fra-right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 30px;
}

.fra-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

.fra-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.fra-video-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Face Label */
.fra-face-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    display: none;
}

.fra-face-label.show {
    display: block;
}

/* Success Overlay */
.fra-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fra-success-box {
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
}

.fra-check-icon {
    width: 80px;
    height: 80px;
    background: #16a085;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 25px;
    font-weight: bold;
}

.fra-success-box h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.fra-success-text {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.fra-done-btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #16a085;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fra-done-btn:hover {
    background: #138d75;
}

/* Loading State */
.fra-loading {
    text-align: center;
    color: #7f8c8d;
}

.fra-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #e8edf2;
    border-top-color: #16a085;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive - Tablet Portrait */
@media (max-width: 1024px) {
    .fra-simple-wrapper {
        flex-direction: column;
        width: 95%;
        height: auto;
        max-height: 95vh;
    }
    
    .fra-left-panel {
        flex: 0 0 auto;
        padding: 40px 30px;
    }
    
    .fra-left-panel h1 {
        font-size: 36px;
    }
    
    .fra-right-panel {
        flex: 1;
        min-height: 400px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .fra-simple-wrapper {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .fra-left-panel {
        padding: 30px 20px;
    }
    
    .fra-left-panel h1 {
        font-size: 32px;
    }
    
    .fra-subtitle {
        font-size: 18px;
    }
    
    .fra-success-box {
        padding: 40px 30px;
        margin: 0 20px;
    }
}

/* Status Colors */
.fra-status-success { 
    background: #d4edda;
    color: #155724;
}

.fra-status-error { 
    background: #f8d7da;
    color: #721c24;
}

.fra-status-warning { 
    background: #fff3cd;
    color: #856404;
}

.fra-status-info { 
    background: #d1ecf1;
    color: #0c5460;
}
