/* Site Panel Specific Styles - Enhanced Modern UI */

#siteSelection {
    margin-top: 15px;
}

#siteCount {
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
}

#siteList {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.8), rgba(20, 20, 20, 0.8));
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    margin: 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.site-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-item:hover::before {
    transform: scaleX(1);
}

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

.site-item:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.1));
    transform: translateX(5px);
}

.site-item.selected {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.site-item.selected::before {
    transform: scaleX(1);
}

.site-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
}

.site-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border-radius: 3px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.site-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-code {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.site-type {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 3px;
    font-weight: 500;
}

.info-message {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 13px;
}

/* Site selection styling */
.site-item.selected .site-code {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-item.selected .site-type {
    color: rgba(255, 255, 255, 0.9);
}

.site-item.selected input[type="checkbox"] {
    accent-color: #fff;
}

/* Scrollbar styling for site list */
#siteList::-webkit-scrollbar {
    width: 8px;
}

#siteList::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 4px;
    margin: 4px 0;
}

#siteList::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

#siteList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #66BB6A, #81C784);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.6);
}
/* Show Locations 3D View Button - Attractive Big Button */
.show-locations-button-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(76, 175, 80, 0.3);
}

.show-locations-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.show-locations-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.show-locations-btn:hover::before {
    left: 100%;
}

.show-locations-btn:hover {
    background: linear-gradient(135deg, #F7931E, #FF6B35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.show-locations-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.show-locations-btn:disabled {
    background: linear-gradient(135deg, #666, #555);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.show-locations-btn .btn-icon {
    font-size: 20px;
}

.show-locations-btn .btn-text {
    flex: 1;
    text-align: center;
}

.show-locations-btn .btn-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* Progress Bar Overlay - Medium Size Attractive Design */
#progressBarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-container {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border-radius: 20px;
    padding: 40px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
                0 0 40px rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(76, 175, 80, 0.4);
}

.progress-header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.progress-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.progress-bar-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #81C784);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.3s ease-out;
    animation: shimmer 2s infinite;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

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

.progress-stage {
    font-size: 16px;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.progress-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

