        :root {
            --primary-color: #4361ee;
            --primary-dark: #0039ba;
            --secondary-color: #7209b7;
            --accent-color: #4cc9f0;
            --success-color: #4ade80;
            --warning-color: #f59e0b;
            --danger-color: #c80028;
            --light-color: #f8fafc;
            --dark-color: #ffffff;
            --gray-color: #c1c7ce;
            --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            --card-radius: 16px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f8f9fa 0%, #f1f4fa 100%);
            color: var(--dark-color);
            min-height: 100vh;
            line-height: 1.6;
        }

        .container-fluid {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }

        /* Header Navigation */
        .nav-bar {
            display: flex;
            align-items: center;
            padding: 1rem 0;
            margin-bottom: 1.5rem;
        }

        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--dark-color);
        }

        .logo-img {
            height: 40px;
            margin-right: 12px;
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .logo-text span {
            color: var(--danger-color);
        }

        /* Glass Card Effect */
        .glass-card, .header-card, .filter-card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: var(--card-radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        /* Header Card */
        .header-card {
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .foto-funcionario {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 6px solid var(--light-color);
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
        }

        .foto-funcionamento.bg-secondary {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
        }

        .header-card h2 {
            color: var(--dark-color);
            font-weight: 700;
            margin-bottom: 1rem;
            font-size: 1.6rem;
        }

        .header-card p {
            margin-bottom: 0.5rem;
            color: var(--gray-color);
        }

        .header-card i {
            color: var(--gray-color);
        }

         .header-card iicon {
            color: var(--danger-color);
        }

        /* Aniversário */
        .alert-aniversario {
            background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
            color: #d63384;
            border: none;
            border-radius: 12px;
            font-weight: 600;
        }

        /* Botão Ponto */
        .btn-ponto {
            background: var(--danger-color);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
        }

        .btn-ponto:hover:not(:disabled) {
            background: var(--primary-color);
            color: #f1f5f9;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
        }

        .btn-ponto:disabled {
            background: var(--gray-color);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Cards de Registros */
        .card-header {
            background: #798da8;
            color: white;
            border: none;
            padding: 1rem 1.5rem;
        }

        .card-header h5 {
            margin: 0;
            font-weight: 500;
            font-size: 16px;
        }

        .card-body {
            padding: 1.5rem;
        }

        .registro-hoje {
            padding: 0.75rem;
            margin-bottom: 0.75rem;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 10px;
            border-left: 4px solid var(--primary-color);
            animation: fadeIn 0.5s ease forwards;
            opacity: 0;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .badge-tipo {
            background: var(--primary-color);
            color: white;
            padding: 0.4rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .status-indicator {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .status-online {
            background-color: var(--success-color);
            box-shadow: 0 0 8px var(--success-color);
        }

        /* Filter Card */
        .filter-card {
            padding: 1.5rem;
        }

        .filter-card h5 {
            margin-bottom: 1.5rem;
            color: var(--dark-color);
            font-weight: 600;
        }

        .form-label {
            font-weight: 600;
            color: var(--dark-color);
            margin-bottom: 0.5rem;
        }

        .form-control, .form-select {
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            padding: 0.75rem;
            transition: all 0.3s ease;
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }

        .btn-primary {
            background: var(--primary-color);
            border: none;
            border-radius: 10px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn-outline-secondary {
            border-radius: 10px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
        }

        /* Tabelas */
        .table {
            border-radius: 10px;
            overflow: hidden;
        }

        .table thead th {
            background-color: var(--light-color);
            color: var(--dark-color);
            font-weight: 600;
            border: none;
            padding: 1rem;
        }

        .table tbody td {
            padding: 1rem;
            border-color: #f1f5f9;
        }

        .table tbody tr:hover {
            background-color: rgba(67, 97, 238, 0.05);
        }

        /* Paginação */
        .pagination .page-link {
            color: var(--primary-color);
            border: 1px solid #e2e8f0;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            margin: 0 2px;
        }

        .pagination .page-item.active .page-link {
            background: var(--primary-color);
            border-color: var(--primary-color);
        }

        /* User Info Footer */
        .user-info {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            display: flex;
            align-items: center;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            padding: 0.5rem 1rem 0.5rem 0.5rem;
            box-shadow: var(--shadow);
            z-index: 1000;
        }

        .user-details {
            display: flex;
            align-items: center;
            margin-right: 1rem;
        }

        .user-details img, .avatar-placeholder {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 0.75rem;
            border: 2px solid var(--light-color);
        }

        .avatar-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
        }

        .user-name {
            font-weight: 600;
            color: var(--dark-color);
        }

        .logout-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger-color);
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .logout-button:hover {
            background: var(--danger-color);
            color: white;
            transform: scale(1.1);
        }

        /* Modal */
        .modal-content {
            border: none;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .geometric-pattern {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }

        .geometric-line {
            position: absolute;
            background: var(--primary-dark);
            position: absolute;
            
            transform-origin: top left;
            
        }

        .line-1 {
            width: 190%;
            height: 300px;
            top: 18%;
            left: -90%;
            transform: rotate(340deg);
        
        }

    .line-2 {
    width: 150%;
    height: 110px;
    top: 100%;
    left: 75%;
    transform: rotate(340deg);
           
        }

        .modal-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            
            border: none;
            position: relative;
            z-index: 1;
        }

        .modal-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 0.2rem;
        }

        .modal-logo-img {
            height: 40px;
           
        }

        .modal-title {
            color: var(--light-color);
            font-weight: 600;
            text-align: center;
            font-size: 14px;
             letter-spacing: 2px;
        }

        .btn-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
        }

        .modal-body {
            padding: 1rem 2rem;
            position: relative;
            z-index: 1;
            text-align: center;
        }

        .photo-wrapper {
            position: relative;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .employee-photo {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--light-color);
            box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
        }

         .employee-name {
           color: var(--dark-color);
            font-weight: 700;
            text-align: center;
            font-size: 20px;
             
        }

        .scan-ring {
            position: absolute;
            top: -10px;
            left: -10px;
            right: -10px;
            bottom: -10px;
            border: 2px solid var(--success-color);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.7; }
            100% { transform: scale(1); opacity: 1; }
        }

        .status-badge {
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 30px;
            height: 30px;
            background: var(--success-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            border: 2px solid white;
        }

   

        .employee-id {
            color: var(--gray-color);
            margin-bottom: 0.2rem;
        }

        .digital-display {
            margin: 1rem 0;
        }

        .digital-clock {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-color);
            font-family: 'Courier New', monospace;
            margin-bottom: 0.5rem;
        }

       .clock-label {
  display: flex;
  align-items: center;
  justify-content: center;


  color: var(--danger-color);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ícone com animação pulsante */
.clock-label i {
  font-size: 1.3rem;
  animation: pulse-icon 1.5s infinite;
  transition: transform 0.3s ease;
}

/* Animação sutil */
@keyframes pulse-icon {
  0% { transform: scale(1); opacity: 1 }
  50% { transform: scale(1.2); opacity: 0.7 }
  100% { transform: scale(1); opacity: 1 }

        }
.msgtypewriter {
            margin: 1rem 0;
            background: #cfe2ff;
            border: 1px solid var(--primary-dark);
        }

        .typewriter {
            display: inline-block;
            overflow: hidden;
            border-right: 2px solid var(--primary-color);
            white-space: nowrap;
            animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
            font-weight: 600;
            color: var(--dark-color);
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--primary-color) }
        }
        .modal-footer {
            border: none;
           
            position: relative;
            z-index: 1;
            margin-top: 2px;
        }

        .btn-confirm {
            background: var(--success-color);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 0.75rem 2rem;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        }

        .btn-confirm:hover {
             background: linear-gradient(135deg, var(--success-color), #01da51);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
        }

        .barcode-container {
            padding: 1rem 2rem;
            
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .barcode {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 40px;
            margin-bottom: 0.5rem;
        }

        .barcode-line {
            display: inline-block;
            height: 30px;
            background-color: var(--dark-color);
            margin: 0 1px;
        }

        .barcode-id {
            font-family: 'Courier New', monospace;
            font-size: 0.8rem;
            color: var(--gray-color);
            letter-spacing: 2px;
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .container-fluid {
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            .header-card .row {
                text-align: center;
            }
            
            .header-card .col-md-4 {
                text-align: center !important;
                margin-top: 1rem;
            }
            
            .foto-funcionario {
                
                width: 140px;
                height: 140px;
                margin-bottom: 1rem;
                align-items: center;
            }
            
            .header-card h2 {
                font-size: 1.5rem;
            }
            
            .user-info {
                bottom: 1rem;
                right: 1rem;
            }
            
            .user-name {
                display: none;
            }
            
            .modal-dialog {
                margin: 1rem;
            }
            
            .digital-clock {
                font-size: 2rem;
            }
        }

        @media (max-width: 576px) {
            .nav-bar {
                justify-content: center;
            }
            
            .logo-text {
                font-size: 1.25rem;
            }
            
            .header-card {
                padding: 1rem;
            }
            
            .btn-ponto {
                width: 100%;
                margin-bottom: 1rem;
            }
            
            .filter-card .row.g-3 .col-md-6 {
                margin-bottom: 1rem;
            }
            
            .table-responsive {
                font-size: 0.9rem;
            }
            
            .user-info {
                bottom: 0.5rem;
                right: 0.5rem;
            }
            
            .modal-body {
                padding: 1rem;
            }
            
            .employee-photo {
                width: 100px;
                height: 100px;
            }
            
            .digital-clock {
                font-size: 1.75rem;
            }
              .typewriter {
        font-size: 0.8rem;
       
        max-width: calc(100vw - 30px);
    }

    .line-1 {
         width: 190%;
            height: 300px;
            top: 5%;
            left: -90%;
            transform: rotate(340deg);
           
    }

     .line-2 {
    width: 150%;
    height: 110px;
    top: 100%;
    left: 45%;
    transform: rotate(340deg);
    
        }
    }

        @media (max-width: 375px) {
            .container-fluid {
                padding-left: 0.75rem;
                padding-right: 0.75rem;
            }
            
            .logo-img {
                height: 32px;
            }
            
            .logo-text {
                font-size: 1.1rem;
            }
            
            .header-card {
                padding: 0.75rem;
            }
            
            .foto-funcionario {
                width: 70px;
                height: 70px;
            }
            
            .header-card h2 {
                font-size: 1.25rem;
            }
            
            .card-header h5 {
                font-size: 1rem;
            }
            
            .table {
                font-size: 0.8rem;
            }
            
            .user-info {
                padding: 0.25rem 0.5rem 0.25rem 0.25rem;
            }
            
            .user-details img, .avatar-placeholder {
                width: 32px;
                height: 32px;
            }
            
            .logout-button {
                width: 28px;
                height: 28px;
            }
            
            .modal-header {
                padding: 1.5rem 1rem 0.5rem;
            }
            
            .modal-body {
                padding: 0.5rem 1rem;
            }
            
            .employee-photo {
                width: 80px;
                height: 80px;
            }
            
            .digital-clock {
                font-size: 1.5rem;
            }
            
            .btn-confirm {
                width: 100%;
            }

            .line-1 {
        width: 160%;
        height: 420px;
        top: 30%;
        left: -90%;
    }
        }