body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 1.5em;
    color: #007bff; /* Blue theme color */
}

.form-group {
    margin-bottom: 1em;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}

.form-group.remember-me {
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 1.5em;
}

.form-group.remember-me input[type="checkbox"] {
    margin-right: 0.5em;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.error-message {
    color: #dc3545; /* Red for errors */
    margin-top: 1em;
    font-size: 0.9em;
}

/* Styles for ponto.html */
.ponto-container {
    text-align: center;
}

.ponto-container h2 {
    margin-bottom: 1em;
}

#video-feed {
    width: 100%;
    max-width: 300px; /* Adjust as needed */
    border: 1px solid #ccc;
    margin-bottom: 1em;
    display: none; /* Hidden initially */
}

#capture-button {
    margin-top: 1em;
}

#status-message {
    margin-top: 1em;
    font-weight: bold;
}

.success-message {
    color: #28a745; /* Green for success */
}

/* Styles for ponto.html header */
.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
    flex-wrap: wrap; /* Wrap if screen is too small */
}
.header-info h2 {
    margin: 0 1em 0 0; /* Margin to the right */
    font-size: 1.3em;
    flex-grow: 1; /* Allow h2 to take available space */
}
.btn-secondary { /* Style for logout button */
    background-color: #6c757d;
    padding: 0.5em 1em;
    font-size: 0.9em;
}
.btn-secondary:hover {
    background-color: #5a6268;
}


/* Styles for Clock Display */
#clock-display {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 1.5em;
    border: 1px solid #ddd;
}
#clock-display #time {
    font-size: 2.5em; /* Large time */
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
#clock-display #date {
    font-size: 1.1em;
    color: #555;
}

/* Styles for History Section */
#history-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}
#history-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}
#history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px; /* Limit height and make scrollable if needed */
    overflow-y: auto;
}
#history-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95em;
    color: #444;
}
#history-list li:last-child {
    border-bottom: none;
}
#history-list .history-time {
    font-weight: bold;
    margin-right: 10px;
}
#history-list .history-type-entrada {
    color: green;
    font-weight: bold;
}
#history-list .history-type-saida {
    color: red;
    font-weight: bold;
}
#history-list .history-location {
    font-size: 0.85em;
    color: #777;
    display: block; /* Put location on new line */
    margin-top: 3px;
}

/* Styles for Action Buttons Grid */
.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 10px; /* Space between buttons */
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.btn-ponto {
    padding: 1em 0.5em; /* Adjust padding for grid */
    font-size: 0.95em;
    width: 100%; /* Make buttons fill grid cell */
}

.btn-ponto:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Basic responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1.5em;
    }
    .login-container h1 {
        font-size: 1.8em;
    }
}
