/* ==========================================
   RELÓGIO-PONTO - MARIA CAVALHEIRO
   Estilos para o sistema de ponto eletrônico
   ========================================== */

/* ========== BOTÃO VOLTAR AO MENU ========== */
.btn-voltar-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: white;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.btn-voltar-menu:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #667eea;
    color: white;
}

@media (max-width: 640px) {
    .btn-voltar-menu span {
        display: none;
    }
    
    .btn-voltar-menu {
        padding: 12px 15px;
        border-radius: 50%;
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

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

/* ========== CABEÇALHO ========== */
.header {
    text-align: center;
    margin-bottom: 35px;
}

.icon-clock {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

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

.title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.3;
}

.subtitle {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

/* ========== FORMULÁRIO ========== */
.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #667eea;
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-select:hover {
    border-color: #cbd5e0;
}

/* ========== UPLOAD DE ARQUIVO ========== */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-label:hover {
    background: #edf2f7;
    border-color: #667eea;
}

.file-label i {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 10px;
}

.file-label span {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.image-preview {
    margin-top: 15px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== INFORMAÇÃO AUTOMÁTICA ========== */
.info-automatica {
    background: #ebf4ff;
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    border-radius: 8px;
}

.info-automatica p {
    font-size: 13px;
    color: #2c5282;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-automatica i {
    color: #667eea;
}

/* ========== BOTÃO DE ENVIO ========== */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== MENSAGEM DE SUCESSO ========== */
.success-message {
    background: #c6f6d5;
    border: 2px solid #48bb78;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.success-message.hidden {
    display: none;
}

.success-message i {
    font-size: 50px;
    color: #38a169;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 18px;
    font-weight: 600;
    color: #22543d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== LINK ADMINISTRATIVO ========== */
.admin-link {
    margin-top: 25px;
    text-align: center;
}

.admin-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-link a:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 640px) {
    .card {
        padding: 25px 20px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }

    .icon-clock {
        font-size: 40px;
    }

    .form {
        gap: 20px;
    }

    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 15px;
    }

    .card {
        padding: 20px 15px;
    }

    .title {
        font-size: 18px;
    }

    .file-label {
        padding: 25px 15px;
    }

    .file-label i {
        font-size: 35px;
    }
}
