.greek-vars {
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    resize: both; /* Enable resizing by default */
}

.greek-vars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, #ff7e5f 60%, #f8c296ff 100%);
    opacity: 0.8;
}

/* Header Styling */
.greek-vars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, rgba(35, 37, 38, 0.9) 0%, rgba(65, 67, 69, 0.9) 100%);
    margin: -0.75rem -0.75rem 1.5rem -0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
    user-select: none;
}

.greek-vars-header:active {
    cursor: grabbing;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-drag-area {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    cursor: grab;
}

.header-controls {
    display: flex;
    gap: 0.5rem;
}

/* Minimalistic white transparent buttons */
.control-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 1) !important;
}

/* Section Headers with Toggle Buttons */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.greek-vars h6 {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin: 0;
    font-size: 0.875rem; /* Consistent text sizing */
    letter-spacing: 0.3px;
}

/* Variable Creator Section */
.variable-creator {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.variable-creator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff7e5f 60%, #f8c296ff 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.variable-creator:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.variable-creator:hover::before {
    opacity: 1;
}

.variable-creator label,
.greek-vars .form-label,
.greek-vars label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* Consistent text sizing */
    letter-spacing: 0.2px;
}

/* Form Controls - Fixed select styling */
.greek-vars .form-control,
.greek-vars select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem; /* Consistent text sizing */
    padding: 0.6rem 0.8rem;
}

.greek-vars .form-control:focus,
.greek-vars select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 126, 95, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.15) !important;
    color: white !important;
    outline: none !important;
}

.greek-vars .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix select option colors */
.greek-vars select option {
    background: #232526 !important;
    color: white !important;
}

/* Buttons */
.greek-vars .btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.3px !important;
    padding: 0.6rem 1rem !important;
    position: relative;
    overflow: hidden;
    color: white !important;
}

.greek-vars .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.greek-vars .btn:hover::before {
    left: 100%;
}

.greek-vars .btn-success {
    background: linear-gradient(135deg, #ff7e5f 60%, #f8c296ff 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3) !important;
    color: white !important;
}

.greek-vars .btn-success:hover {
    background: linear-gradient(135deg, #ff6b47 60%, #f5b380 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4) !important;
    color: white !important;
}

.greek-vars .btn-secondary {
    background: linear-gradient(120deg, #232526 0%, #414345 100%) !important;
    box-shadow: 0 4px 15px rgba(65, 67, 69, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.greek-vars .btn-secondary:hover {
    background: linear-gradient(120deg, #2a2c2d 0%, #4a4c4f 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(65, 67, 69, 0.4) !important;
    color: white !important;
}

/* Export button - Orange */
.greek-vars .btn-export {
    background: linear-gradient(135deg, #ff7e5f 60%, #f8c296ff 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3) !important;
}

.greek-vars .btn-export:hover {
    background: linear-gradient(135deg, #ff6b47 60%, #f5b380 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4) !important;
    color: white !important;
}

/* Import button - Black */
.greek-vars .btn-import {
    background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.greek-vars .btn-import:hover {
    background: linear-gradient(120deg, #000000 0%, #1a1a1a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
}

.greek-vars .btn-danger {
    background: linear-gradient(120deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
    color: white !important;
}

.greek-vars .btn-danger:hover {
    background: linear-gradient(120deg, #c82333 0%, #a71e2a 100%) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* Import/Export Section */
.import-export {
    background: rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

/* Variables List */
.variables {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.variables::-webkit-scrollbar {
    width: 8px;
}

.variables::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.variables::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff7e5f 60%, #f8c296ff 100%);
    border-radius: 4px;
}

.variables::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b47 60%, #f5b380 100%);
}

/* Variable Items - Removed hover animations */
.variable-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Variable inputs - Consistent sizing */
.variable-item .name-input,
.variable-item .value-input {
    font-size: 0.875rem !important; /* Consistent text sizing */
}

/* Square delete buttons with aspect ratio */
.square-btn {
    aspect-ratio: 1 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
}

/* Updated Badges - Both black background with white font, consistent width */
.greek-vars .badge {
      
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    min-width: 80px; /* Consistent minimum width */
    text-align: center;
    display: inline-block;
}

.greek-vars .bg-primary,
.greek-vars .bg-secondary {
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Number Fields */
.number-fields {
    background: rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    border-radius: 10px;
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .greek-vars {
        position: fixed !important;
        top: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100vw - 20px);
        min-width: auto;
        overflow-y: auto;
    }
    
    .number-fields .col-4 {
        margin-bottom: 0.75rem;
    }
}

/* Divider */
.greek-vars hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    border-width: 1px;
}

/* Text muted */
.greek-vars .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Focus states */
.greek-vars input:focus,
.greek-vars select:focus {
    outline: none;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid rgba(255, 126, 95, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced modern touches */
.greek-vars {
        resize: both;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.greek-vars .btn {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Subtle glow effects */
.greek-vars .btn-success:hover,
.greek-vars .btn-export:hover {
    box-shadow: 0 8px 25px rgba(255, 126, 95, 0.4), 0 0 20px rgba(255, 126, 95, 0.2) !important;
}

.greek-vars .form-control:focus,
.greek-vars select:focus {
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.15), 0 0 20px rgba(255, 126, 95, 0.1) !important;
}

/* Undocked state specific styles */
.greek-vars:not(.position-fixed.end-0.bottom-0) {
    resize: both;
    overflow: auto;
    min-width: 320px;
    min-height: 200px;
}

/* Content area */
.greek-vars-content {
    transition: all 0.3s ease;
}

/* Ensure proper text colors for all buttons */
.greek-vars button,
.greek-vars .btn,
.greek-vars input[type="button"],
.greek-vars input[type="submit"],
.greek-vars .control-btn,
.greek-vars .toggle-btn {
    color: white !important;
    text-shadow: none !important;
}

/* Override any inherited dark text colors */
.greek-vars * {
    color: inherit;
}
