/* ============================================
   MODAL STYLES FOR TIME CLOCK
   Add these to your styles.css if modals aren't showing
   ============================================ */

/* Modal overlay - HIDDEN BY DEFAULT */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

/* Show modal when it has inline style or active class */
.modal[style*="display: block"],
.modal.active {
    display: block;
}

/* Modal content box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal header */
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Modal actions (button container) */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    justify-content: flex-end;
}

.modal-actions button {
    min-width: 100px;
}

/* Close button (X) if you have one */
.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin: -10px -10px 0 0;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
}

/* Ensure modal appears above everything */
.modal {
    z-index: 9999 !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}
