/**
 * Soda Shop Scheduler - Main Stylesheet
 * 
 * Mobile-first responsive design
 */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    color: #0275d8;
    text-decoration: none;
}

a:hover, a:focus {
    color: #014c8c;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Containers */
.main-container {
    flex: 1;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Page Title */
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Team View Container */
.team-view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

.user-welcome {
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.main-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
}

.nav-item {
    flex: 1 0 auto;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #495057;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover, 
.nav-link:focus {
    color: #0275d8;
    text-decoration: none;
}

.nav-link.active {
    color: #0275d8;
    border-bottom-color: #0275d8;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn:focus, .btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #0275d8;
    border-color: #0275d8;
}

.btn-primary:hover {
    background-color: #025aa5;
    border-color: #01549b;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Login Page */
.login-page {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.login-header {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.login-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.login-form-container {
    padding: 1.5rem;
}

.login-form-container h2 {
    margin-top: 0;
    text-align: center;
    color: #2c3e50;
}

.login-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

/* PIN Input */
.pin-input-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.pin-input {
    width: 3rem;
    height: 3.5rem;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: white;
    -webkit-appearance: none;
}

.pin-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.month-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

/* Enhanced table layout */
.calendar-table {
    width: 100%;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.calendar-table thead tr {
    height: auto;
}

.calendar-table tbody tr {
    height: 8rem !important;
}

.calendar-table th,
.calendar-table td {
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 0;
    position: relative;
}

.calendar-table th {
    padding: 0.5rem;
    font-weight: 500;
    background-color: #f8f9fa;
    height: auto !important;
}

.calendar-table td {
    height: 8rem !important;
    width: calc(100% / 7) !important;
    float: none !important;
    vertical-align: top !important;
}

.calendar-day {
    position: relative;
    height: 100%;
    padding: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    overflow: hidden;
    z-index: 1;
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.day-number {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.day-empty {
    background-color: #f8f9fa;
    cursor: default;
}

.day-weekend {
    background-color: #f8f9fa;
}

.day-holiday {
    position: relative;
}

.day-holiday::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0.75rem 0.75rem 0;
    border-color: transparent #17a2b8 transparent transparent;
}

.day-available {
    background-color: #d4edda;
}

.day-partial {
    background-color: #d1ecf1;
}

.day-unavailable {
    background-color: #f8d7da;
}

.holiday-list {
    position: absolute;
    top: 1.75rem;
    left: 0.25rem;
    right: 0.25rem;
    max-height: calc(100% - 2rem);
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 5;
    border-radius: 4px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.holiday-item {
    font-size: 0.75rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #17a2b8;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem;
    border-radius: 4px;
    border: 1px solid #d1ecf1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 0.25rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* When hovering on a day, make holiday list fully visible */
.calendar-day:hover .holiday-list {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: auto;
}

/* Holidays badge counter for days with multiple holidays */
.holidays-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: #17a2b8;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* Custom style for cells with multiple holidays */
.multiple-holidays .holiday-list {
    display: none;
}

.multiple-holidays:hover .holiday-list {
    display: flex;
}

/* Hide holiday indicator when using badge approach */
.multiple-holidays.day-holiday::after {
    display: none;
}

/* Just show a single indicator for the first holiday */
.single-holiday .holiday-item:first-child {
    display: block;
}
.single-holiday .holiday-item:not(:first-child) {
    display: none;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.legend-color-available {
    background-color: #d4edda;
}

.legend-color-partial {
    background-color: #d1ecf1;
}

.legend-color-unavailable {
    background-color: #f8d7da;
}

.legend-color-holiday {
    position: relative;
    background-color: white;
}

.legend-color-holiday::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0.5rem 0.5rem 0;
    border-color: transparent #17a2b8 transparent transparent;
}

/* Availability Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Radio Buttons & Checkboxes with custom styling */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
}

.custom-radio .custom-control-label::before {
    border-radius: 50%;
}

.custom-control-label::after {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background: no-repeat 50% / 50% 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #0275d8;
    border-color: #0275d8;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Time select container */
.time-select-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.time-select {
    width: auto;
    padding: 0.375rem 0.75rem;
}

/* Team View */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-group {
    flex: 1 0 200px;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.filter-select, .filter-date {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-select:focus, .filter-date:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-dates {
    display: flex;
    gap: 0.5rem;
}

.filter-date-group {
    flex: 1;
}

.filter-submit {
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
}

.filter-submit .btn {
    padding: 0.5rem 1rem;
}

.date-range-display {
    margin-bottom: 1.5rem;
}

.date-range-display h2 {
    font-size: 1.25rem;
    color: #2c3e50;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

/* Team Days Layout */
.team-days-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.team-day-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.team-day-header {
    padding: 0.75rem;
    background-color: #2c3e50;
    color: white;
    border-bottom: 1px solid #dee2e6;
}

.team-day-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.team-day-holiday {
    font-size: 0.875rem;
    color: #17a2b8;
    margin-top: 0.25rem;
}

.holiday-required-badge {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #28a745;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    margin-left: 0.25rem;
}

.team-day-members {
    padding: 0.75rem;
}

.team-member-availability {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Grouping by availability status with subtle visual cues */
.team-member-availability:not(:first-child) {
    margin-top: 0.25rem;
}

/* Add subtle background color to group users by availability */
.team-member-availability[data-status="available"] {
    background-color: rgba(212, 237, 218, 0.1);
}

.team-member-availability[data-status="partial"] {
    background-color: rgba(209, 236, 241, 0.1);
}

.team-member-availability[data-status="unavailable"] {
    background-color: rgba(248, 215, 218, 0.1);
}

.team-member-availability[data-status="not-set"] {
    background-color: rgba(233, 236, 239, 0.1);
}

.team-member-availability .member-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.team-member-availability .availability-reason {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding-left: 1rem;
    font-style: italic;
    font-size: 0.85rem;
    color: #6c757d;
}

.team-member-availability:last-child {
    border-bottom: none;
}

.member-name {
    font-weight: 500;
}

/* Single Member View */
.member-availability-container {
    max-width: 800px;
    margin: 0 auto;
}

.member-days-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-day-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.day-info {
    flex: 1;
}

.day-date {
    font-weight: 500;
    display: block;
}

.day-holiday {
    font-size: 0.875rem;
    color: #17a2b8;
    display: block;
    margin-top: 0.25rem;
}

.day-availability {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
    min-width: 150px;
    text-align: center;
}

.availability-reason {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #6c757d;
}

.team-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.team-member-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

.team-member-header {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-member-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.team-member-body {
    padding: 0.75rem;
}

.availability-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.availability-item:last-child {
    border-bottom: none;
}

.availability-date {
    font-weight: 500;
}

.availability-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.status-available {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.status-partial {
    background-color: #d1ecf1;
    color: #0c5460;
    font-weight: 600;
}

.status-unavailable {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

/* Style for users with no status set */
.team-member-availability .availability-status:not(.status-available):not(.status-partial):not(.status-unavailable) {
    background-color: #e9ecef;
    color: #6c757d;
    font-style: italic;
}

.no-availability {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Admin styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.inactive-users-card .admin-card-header {
    background: #6c757d;
}

.admin-card-header {
    padding: 1rem 1.25rem;
    background: #2c3e50;
    color: white;
    border-bottom: 1px solid #dee2e6;
}

.admin-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-card-body {
    padding: 1.25rem;
}

.admin-card-body p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #6c757d;
}

.admin-form {
    max-width: 800px;
}

.admin-form .form-group {
    margin-bottom: 1.25rem;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.admin-form .form-control {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.admin-form .form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.admin-form .form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.admin-form .checkbox-group {
    display: flex;
    align-items: center;
}

.admin-form .checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.admin-form .checkbox-label {
    margin-left: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    vertical-align: middle;
}

.admin-table thead {
    background-color: #f8f9fa;
}

.admin-table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}

.admin-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.admin-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.permanent-delete-btn {
    background-color: #dc3545;
    border-color: #bd2130;
}

.permanent-delete-btn:hover {
    background-color: #c82333;
    border-color: #a71d2a;
}

.text-center {
    text-align: center;
}

/* Admin stats */
.admin-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Holiday management */
.holiday-year {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c3e50;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
}

.holiday-month {
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.holiday-month-title {
    margin-bottom: 1rem;
    color: #3498db;
    font-weight: 600;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid rgba(21, 87, 36, 0.2);
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid rgba(114, 28, 36, 0.2);
}

.status-required {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid rgba(21, 87, 36, 0.2);
}

.status-not-required {
    background-color: #e9ecef;
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Table responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    max-width: 300px;
}

.notification {
    background-color: white;
    color: #333;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #6c757d;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    justify-content: center;
}

.page-item {
    margin: 0 0.2rem;
}

.page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.25;
    color: #0275d8;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.page-link:hover {
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #0275d8;
    border-color: #0275d8;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Shift Management Styles */
.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.week-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.weekly-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.day-schedule {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.day-header {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: white;
}

.day-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.day-shifts {
    padding: 0.75rem;
}

.shift-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.shift-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #fff;
    border-color: #80bdff;
}

.shift-item:last-child {
    margin-bottom: 0;
}

.shift-info {
    flex: 1;
}

.shift-employee {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.shift-time {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
    background-color: #17a2b8;
    color: white;
    border-radius: 0.25rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.shift-actions {
    margin-left: 1rem;
}

.no-shifts {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
}

.delete-shift-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .col-md-3 {
        width: 100%;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .week-navigation {
        flex-direction: column;
    }
    
    .week-title {
        margin: 0.5rem 0;
    }
    
    /* Improved mobile calendar styling */
    .calendar-table td,
    .calendar-table tr,
    .calendar-day {
        height: 4.5rem !important; /* Reduced height for more square appearance */
        max-height: 4.5rem !important;
    }
    
    /* Better proportion for mobile calendar cells */
    .calendar-table td {
        padding: 0 !important;
        width: 14.28% !important; /* 100% ÷ 7 days */
        aspect-ratio: 1 / 1; /* Force square cells */
    }
    
    /* Better display of day numbers on mobile */
    .day-number {
        font-size: 0.7rem;
        top: 0.1rem;
        left: 0.1rem;
    }
    
    /* Make holiday indicators smaller on mobile */
    .day-holiday::after {
        border-width: 0 0.5rem 0.5rem 0;
    }
    
    /* Adjust holiday list height for mobile */
    .holiday-list {
        max-height: calc(100% - 1.25rem);
        top: 1.25rem;
    }
    
    /* Smaller holiday items on mobile */
    .holiday-item {
        font-size: 0.65rem;
        padding: 0.1rem 0.2rem;
        margin-bottom: 0.1rem;
    }
    
    /* Smaller badge for multiple holidays */
    .holidays-badge {
        width: 1rem;
        height: 1rem;
        font-size: 0.6rem;
        top: 0.15rem;
        right: 0.15rem;
    }
}

/* Responsive styles */
@media (min-width: 576px) {
    .main-container {
        max-width: 540px;
    }
    
    .team-list {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    }
    
    .admin-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (min-width: 768px) {
    .main-container {
        max-width: 720px;
    }
    
    .calendar-day {
        height: 5rem;
    }
}

@media (min-width: 992px) {
    .main-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .main-container {
        max-width: 1140px;
    }
}