/* Basic styles for TilerFlow */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    text-align: center;
    margin-top: 40px;
}

p {
    text-align: center;
    font-size: 1.1em;
    margin-top: 10px;
}

.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't increase total width */
    font-size: 1em;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.form-section,
.list-section {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.user-list {
    list-style: none;
    padding: 0;
}

.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.user-list li:last-child {
    border-bottom: none;
}

.delete-form {
    display: inline-block; /* To keep delete button next to username */
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

.success-message {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* Styles for Tiler Management (tilers.php) */

.dashboard-links a {
    margin: 0 10px; /* Space out the links on the dashboard */
}

.inline-group {
    display: inline-block;
    margin-right: 15px;
    vertical-align: top;
}

.inline-group label {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.inline-group input, .inline-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    width: auto; /* Adjust width as needed */
}

.btn-approve {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.btn-approve:hover {
    background-color: #218838;
}

.approve-form {
    display: flex;
    align-items: flex-end;
    gap: 10px; /* Space between form elements */
}

/* Additional styles for Job Management (jobs.php) */

.job-list {
    list-style: none;
    padding: 0;
}

.job-list li {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.job-list li span {
    flex-grow: 1;
    line-height: 1.6;
}

.job-list li strong {
    color: #333;
}

.job-list li .job-actions {
    margin-left: 20px;
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Prevent actions from shrinking */
}

.btn-edit, .btn-cancel {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-cancel {
    background-color: #6c757d;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

/* Styles for Weekly Schedule (schedule.php) */

.schedule-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    background-color: #e2e8f0;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.schedule-navigation h2 {
    font-size: 1.8em;
    margin: 0;
    color: #2c3e50;
}

.schedule-navigation .btn-secondary {
    background-color: #4a5568;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.schedule-navigation .btn-secondary:hover {
    background-color: #2d3748;
}

.weekly-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.schedule-day-column {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    min-height: 250px; /* Ensure columns have a minimum height */
    display: flex;
    flex-direction: column;
}

.schedule-day-column h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.schedule-day-column h3 small {
    display: block;
    font-size: 0.7em;
    color: #666;
}

.no-jobs {
    color: #777;
    font-style: italic;
    margin-top: 20px;
}

.job-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.job-schedule-list li {
    background-color: #f0f4f8;
    border: 1px solid #d1d9e0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 0.9em;
}

.job-schedule-list li:last-child {
    margin-bottom: 0;
}

.job-schedule-list li strong {
    color: #007bff;
}

.inline-date-picker {
    margin-left: 5px;
    padding: 3px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.85em;
    cursor: pointer;
}

/* Modal/Overlay styles for Reschedule Form */
.reschedule-form-modal {
    position: fixed;
    z-index: 1000; /* High z-index to be on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex;
    justify-content: center;
    align-items: center;
}

.reschedule-form-modal form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
}

.reschedule-form-modal h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8em;
}

/* Delay Summary List styles */
.delay-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.delay-summary-list li {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    flex: 1 1 auto; /* Allow items to grow and shrink */
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.delay-summary-list li strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #343a40;
} 