/* style.css - FINAL FIXED VERSION */

html, body { 
    height: 100%; margin: 0; padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f3f4f6; color: #1f2937;
    display: flex; flex-direction: column; 
}

/* HEADER */
.app-header { 
    background: white; padding: 15px 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 500; 
}
.company-brand { font-size: 1.2rem; font-weight: bold; color: #2563eb; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 10px; }

/* MAIN CONTENT */
.main-content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px; box-sizing: border-box; }
.dashboard-card { 
    background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow-x: auto; 
}

/* --- BUTTONS & COLORS (FIXED) --- */
.action-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.btn-action { 
    padding: 10px 15px; border: none; border-radius: 6px; 
    font-weight: 600; cursor: pointer; color: white; 
    display: flex; align-items: center; gap: 5px; font-size: 0.9rem; text-decoration: none;
    white-space: nowrap; transition: opacity 0.2s;
}
.btn-action:hover { opacity: 0.9; }

/* The Missing Colors Restored Here: */
.btn-register { background-color: #10b981; } /* Green */
.btn-manage { background-color: #374151; }   /* Dark Grey */
.btn-view-all { background-color: #8b5cf6; } /* Purple */
.btn-pending { background-color: #f59e0b; }  /* Orange */
.btn-completed { background-color: #059669; } /* Dark Green */
.btn-today { background-color: #2563eb; }    /* Blue */

/* Table Action Buttons */
.btn-table-action { padding: 6px 10px; border:none; border-radius:4px; color:white; cursor:pointer; font-size:0.8rem; margin-right:5px; }
.btn-edit { background:#f59e0b; }
.btn-delete { background:#ef4444; }

/* TABLES */
table { width: 100%; border-collapse: collapse; min-width: 600px; background: white; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
th { background-color: #f9fafb; font-weight: 600; color: #6b7280; font-size: 0.85rem; text-transform: uppercase; }

/* FORMS */
input, select, textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }

/* AUTH PAGES (Login) */
.auth-container {
    background: white; width: 90%; max-width: 400px; 
    margin: 50px auto; padding: 30px; border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center;
}
.auth-container button { width: 100%; padding: 12px; background: #2563eb; color: white; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }

/* MODALS */
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); overflow-y: auto; }
.modal-content { background: white; margin: 5% auto; width: 95%; max-width: 500px; border-radius: 8px; }
.modal-content.wide { max-width: 900px; }
.modal-header { background: #2563eb; color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; }
.close-modal { color: white; font-size: 24px; cursor: pointer; font-weight: bold; }

/* FOOTER */
.app-footer { background: #1f2937; color: #9ca3af; text-align: center; padding: 15px; margin-top: auto; border-top: 4px solid #2563eb; font-size: 0.8rem; }