/* General Styles */
body {
    background-color: #f8f9fa;
}

.active-booking {
    background-color: #f0f8ff;
    border-left: 3px solid #007bff;
}

/* Map Styles */
.client-marker i, .mill-marker i {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Sidebar Styles */
.list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}

/* Booking Status Styles */
.badge-pending {
    background-color: #ffc107;
    color: #212529;
}

.badge-confirmed {
    background-color: #17a2b8;
    color: #fff;
}

.badge-completed {
    background-color: #28a745;
    color: #fff;
}

.badge-cancelled {
    background-color: #dc3545;
    color: #fff;
}

/* Profile image */
.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Admin specific styles */
.admin-panel .list-group-item.active {
    background-color: #343a40;
    border-color: #343a40;
}

/* Client specific styles */
.client-panel .list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}

/* Dashboard cards */
.card {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
}

/* Button styles */
.btn {
    border-radius: 3px;
}

/* Table styles */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

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

/* Mobile-first responsive design */
@media (max-width: 575.98px) {
    /* Extra small devices (phones, less than 576px) */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    /* Make cards more compact on mobile */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
    }
    
    /* Adjust form elements for mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Make buttons full width on mobile */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
    
    /* Table responsiveness */
    .table-responsive {
        border: none;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        vertical-align: middle;
        word-wrap: break-word;
    }
    
    /* Hide less important table columns on mobile */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 150px;
    }
    
    /* Sidebar adjustments for mobile */
    .list-group-item {
        padding: 0.75rem;
        font-size: 14px;
    }
    
    .list-group-item i {
        width: 20px;
        text-align: center;
    }
    
    /* Welcome message */
    h2 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    /* Calendar adjustments for mobile */
    #calendar {
        height: 400px;
        font-size: 12px;
    }
    
    /* Status badges */
    .badge {
        font-size: 10px;
        padding: 0.25rem 0.5rem;
    }
    
    /* Input groups */
    .input-group-text {
        font-size: 14px;
        padding: 0.375rem 0.5rem;
    }
    
    /* Make modals mobile-friendly */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
}

@media (max-width: 767.98px) {
    /* Small devices (landscape phones, less than 768px) */
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    /* Adjust container padding */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Stack sidebar and content vertically */
    .row .col-md-3,
    .row .col-md-9 {
        margin-bottom: 20px;
    }
    
    /* Make sidebar horizontal on mobile */
    .col-md-3 .list-group {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .col-md-3 .list-group-item {
        flex: 0 0 auto;
        border-radius: 20px !important;
        margin-right: 10px;
        white-space: nowrap;
        text-align: center;
        min-width: 120px;
    }
    
    /* Adjust text sizes */
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-row .col-md-6 {
        margin-bottom: 10px;
    }
    
    /* Table improvements */
    .table thead th {
        font-size: 11px;
        padding: 0.5rem 0.25rem;
    }
    
    /* Action buttons in tables */
    .btn-sm {
        font-size: 10px;
        padding: 0.25rem 0.5rem;
    }
    
    /* Calendar improvements */
    .fc-toolbar {
        flex-direction: column;
    }
    
    .fc-toolbar-chunk {
        margin-bottom: 10px;
    }
    
    .fc-button {
        font-size: 12px;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 991.98px) {
    /* Medium devices (tablets, less than 992px) */
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    /* Adjust card spacing */
    .card {
        margin-bottom: 20px;
    }
    
    /* Table adjustments */
    .table {
        font-size: 13px;
    }
    
    /* Calendar adjustments */
    #calendar {
        height: 500px;
    }
}

@media (max-width: 1199.98px) {
    /* Large devices (desktops, less than 1200px) */
    .container-fluid {
        max-width: 100%;
    }
    
    .profile-image {
        width: 130px;
        height: 130px;
    }
}

/* Additional mobile-specific utilities */
.mobile-hide {
    display: block;
}

.mobile-show {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-show.d-flex {
        display: flex !important;
    }
    
    .mobile-show.d-inline {
        display: inline !important;
    }
    
    .mobile-show.d-inline-block {
        display: inline-block !important;
    }
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn {
        min-height: 44px; /* Apple's recommended touch target size */
        padding: 0.5rem 1rem;
    }
    
    .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}

/* Improved scrolling for mobile */
@media (max-width: 767.98px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll on body */
    body {
        overflow-x: hidden;
    }
    
    /* Better spacing for mobile */
    .mt-4 {
        margin-top: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Loading states for better UX */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007bff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 