﻿/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    margin-top: var(--navbar-height)
}

/* ========================================
   SHOP HEADER SECTION
   ======================================== */

.shop-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.shop-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ========================================
   STATUS DROPDOWN
   ======================================== */

.status-wrapper {
    position: relative;
    margin-bottom: 1rem;
    display: inline-block;
}

.current-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

    .current-status-badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .current-status-badge.active {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

.status-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

    .status-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.status-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

    .status-dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .status-dropdown-item.active {
        background-color: #e9ecef;
        font-weight: 600;
    }

/* Status badge colors */
.status-neutral {
    background-color: #e9ecef;
    color: #495057;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-warning {
    background-color: #ffeaa7;
    color: #d63031;
}

.status-danger {
    background-color: #ff7675;
    color: white;
}

.status-success {
    background-color: #00b894;
    color: white;
}

/* ========================================
   NEXT CONTROL INFO
   ======================================== */

.next-control-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.next-control-date {
    font-weight: 500;
    color: #495057;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

    .next-control-date.overdue {
        background: #ff7675;
        color: white;
    }

.next-control-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

    .next-control-priority.priority-normal {
        background-color: #e9ecef;
        color: #495057;
    }

    .next-control-priority.priority-high {
        background-color: #ffeaa7;
        color: #856404;
    }

    .next-control-priority.priority-urgent {
        background-color: #ff7675;
        color: white;
    }

.no-control-date {
    color: #6c757d;
    font-style: italic;
}


/* ========================================
   MAP
   ======================================== */

#shop-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#address-map {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

/* ========================================
   SCHEDULE MODAL
   ======================================== */

.shop-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

    .shop-info-header h4 {
        margin: 0 0 0.5rem 0;
        color: #212529;
    }

    .shop-info-header p {
        margin: 0;
        color: #6c757d;
        font-size: 0.875rem;
    }

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.schedule-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height:500px;
    overflow-y:scroll;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-group label {
        font-weight: 500;
        color: #495057;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.form-control {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.priority-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .priority-selection label {
        font-weight: 500;
        color: #495057;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.priority-options {
    display: flex;
    gap: 1rem;
}

.priority-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

    .priority-option input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

    .priority-option span {
        display: block;
        padding: 0.75rem;
        text-align: center;
        border: 2px solid #dee2e6;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-weight: 500;
    }

    .priority-option:hover span {
        border-color: #007bff;
        background-color: #f8f9fa;
    }

    .priority-option.active span {
        border-color: #007bff;
        background-color: #007bff;
        color: white;
    }

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-spinner-small {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   ADDRESS SEARCH MODAL
   ======================================== */

.address-search-container {
    margin-bottom: 1rem;
}

.search-box {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

    .search-box:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.address-results {
    margin-top: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
}

.result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

    .result-item:last-child {
        border-bottom: none;
    }

    .result-item:hover {
        background-color: #f8f9fa;
    }

/* ========================================
   LOCKERS SECTION
   ======================================== */

.lockers-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lockers-header {
    margin-bottom: 1.5rem;
}

    .lockers-header h2 {
        margin: 0;
        color: #212529;
        font-size: 1.75rem;
    }

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.lockers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.locker-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .locker-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-color: #007bff;
    }

    .locker-card a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .locker-card h2 {
        font-size: 1.25rem;
        margin: 0 0 0.75rem 0;
        color: #212529;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .locker-card p {
        margin: 0;
        color: #6c757d;
        font-size: 0.875rem;
        line-height: 1.5;
    }

.options-badge {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.no-lockers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

    .no-lockers p {
        margin: 0;
        font-size: 1.125rem;
    }

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

    .toast-container.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    overflow: hidden;
}

    .toast.success {
        border-left: 4px solid #28a745;
    }

    .toast.error {
        border-left: 4px solid #dc3545;
    }

.toast-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background-color: #28a745;
    color: white;
}

.toast.error .toast-icon {
    background-color: #dc3545;
    color: white;
}

.toast-message {
    flex: 1;
    color: #212529;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .toast-close:hover {
        color: #212529;
    }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .shop-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .shop-header {
        padding: 1.5rem;
    }

    .lockers-section {
        padding: 1.5rem;
    }

    .search-container {
        flex-direction: column;
    }

    .lockers-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
    }

    .priority-options {
        flex-direction: column;
    }
}
/* ========================================
   LOCKERS SECTION
   ======================================== */

.lockers-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lockers-header {
    margin-bottom: 1.5rem;
}

    .lockers-header h2 {
        margin: 0;
        color: #212529;
        font-size: 1.75rem;
    }

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.lockers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.locker-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.locker-card:nth-child(1) {
    animation-delay: 0.1s;
}

.locker-card:nth-child(2) {
    animation-delay: 0.2s;
}

.locker-card:nth-child(3) {
    animation-delay: 0.3s;
}

.locker-card:nth-child(4) {
    animation-delay: 0.4s;
}

.locker-card:nth-child(5) {
    animation-delay: 0.5s;
}

.locker-card:nth-child(6) {
    animation-delay: 0.6s;
}

.locker-card:nth-child(7) {
    animation-delay: 0.7s;
}

.locker-card:nth-child(8) {
    animation-delay: 0.8s;
}

.locker-card:nth-child(9) {
    animation-delay: 0.9s;
}

.locker-card:nth-child(10) {
    animation-delay: 1s;
}

.locker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.locker-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.locker-card h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: #212529;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.locker-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.options-badge {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.no-lockers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

    .no-lockers p {
        margin: 0;
        font-size: 1.125rem;
    }