/* Go High Level UI Customizer - Main Styles */

:root {
    --teal-green: #5EC3AD;
    --light-mint: #C2E7DF;
    --dark-text: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-text);
}

.navbar {
    background-color: var(--teal-green);
}

.global-selector-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sidebar {
    background-color: white;
    border-right: 1px solid #dee2e6;
    height: calc(100vh - 56px);
    position: fixed;
    width: 250px;
    overflow-y: auto;
    top: 56px;
    z-index: 100;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--light-mint);
    color: var(--dark-text);
    font-weight: 600;
}

.color-picker-container {
    margin-bottom: 15px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.logo-preview {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    border: 1px dashed #ccc;
    padding: 10px;
    margin-top: 10px;
}

.code-container {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.role-badge {
    background-color: var(--teal-green);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.preview-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    background-color: white;
}

.preview-sidebar {
    width: 200px;
    background-color: #333;
    padding: 15px;
    color: white;
    border-radius: 4px;
}

.preview-menu-item {
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
}

.menu-category {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.menu-items-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.subaccount-badge {
    background-color: #6c757d;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.subaccount-card {
    border-left: 4px solid var(--teal-green);
}

.active-subaccount {
    border-left: 4px solid #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        margin-bottom: 20px;
        top: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    .preview-sidebar {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Color picker customization */
.pickr {
    display: flex;
    justify-content: center;
}

.color-picker-button {
    width: 40px;
    cursor: pointer;
}

/* Code display */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Success message for copy operation */
.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--teal-green);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 1050;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Loading indicator */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-mint);
    border-top: 5px solid var(--teal-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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