/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #1a1a1a;
    border-right: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
}

/* Logo Section with adjusted sizing */
.logo {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 12px;
}


/* Bigger icon */
.logo-icon {
    width: 56px !important;  /* Increased from 48px */
    height: 56px !important; /* Increased from 48px */
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Alternative: If the above doesn't work, try this more specific selector */
.sidebar .logo .logo-icon {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Ensure the image fills the space */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Smaller text */
.logo-text h1 {
    font-size: 14.5px;  /* Reduced from 18px */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;  /* Reduced from 4px */
    margin-left: -8px;  /* Reduced from 4px */
}

.logo-text p {
    font-size: 11px;  /* Reduced from 12px */
    color: #888888;
}
/* Upload Section */
.upload-section {
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.section-title {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    font-size: 14px;
    color: #00d4aa;
}

.upload-area {
    background: #252525 !important; /* Always use the lighter "hover" color */
    border: 2px dashed #444444 !important; /* Always use the lighter border */
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Make hover state even more prominent */
.upload-area:hover {
    background: #2a2a2a !important; /* Even lighter on hover */
    border-color: #00d4aa !important; /* Green border on hover */
    box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.2);
}

/* Keep upload icon always in active state */
.upload-icon {
    width: 48px;
    height: 48px;
    background: #333333 !important; /* Always use the lighter background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #00d4aa !important; /* Always use green color */
    font-size: 20px;
    transition: all 0.2s ease;
}

/* Make hover state for icon even more prominent */
.upload-area:hover .upload-icon {
    background: #00d4aa !important;
    color: #000000 !important;
    transform: scale(1.05);
}

.upload-text {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 500;
}

.upload-subtext {
    font-size: 12px;
    color: #888888;
}

.file-input {
    display: none;
}

/* File Info */
.file-info-compact {
    margin-top: 16px;
    padding: 16px;
    background: #222222;
    border-radius: 8px;
    display: none;
}

.file-info-compact.show {
    display: block;
}

.file-name {
    font-weight: 500;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 4px;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-name i {
    color: #00d4aa;
    font-size: 14px;
}

.file-size {
    font-size: 11px;
    color: #888888;
}

/* Collapsible Sections */
.collapsible-section {
    border-bottom: 1px solid #2a2a2a;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
}

.section-header:hover {
    background: #222222;
}

.section-title-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.section-title-flex i {
    font-size: 14px;
    color: #00d4aa;
}

.section-chevron {
    font-size: 12px;
    color: #888888;
    transition: transform 0.2s ease;
}

.section-content {
    padding: 0 20px 20px 20px;
    display: none;
}

.section-content.show {
    display: block;
}

.collapsible-section.expanded .section-chevron {
    transform: rotate(180deg);
}

/* Slider Styles */
.slider-container {
    position: relative;
}

.slider-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.slider {
    flex: 1;
    height: 6px;
    background: #333333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slider-value-input {
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 8px;
    width: 80px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.slider-value-input:focus {
    outline: none;
    border-color: #00d4aa;
}

.slider-value {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

/* Target count specific styling */
.target-count-info {
    font-size: 11px;
    color: #888888;
    margin-top: 4px;
    line-height: 1.3;
}

.target-count-warning {
    color: #ff6b6b;
    font-weight: 500;
}

.target-count-optimal {
    color: #00d4aa;
}

/* Mesh Stats */
.mesh-stats-compact {
    background: #222222;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.stats-header {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-header i {
    font-size: 14px;
    color: #00d4aa;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.stats-row:last-child {
    margin-bottom: 0;
}

.stat-name {
    color: #888888;
    font-weight: 400;
}

.stat-value {
    color: #ffffff;
    font-weight: 500;
}

.stat-value.result {
    color: #00d4aa;
}

/* Simple fix for Download Result and Reset Settings buttons */

#downloadBtn, #resetSettingsBtn {
    background: #333333;
    color: #ffffff;
    border: 1px solid #444444;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

#downloadBtn:hover, #resetSettingsBtn:hover {
    background: #3a3a3a;
    border-color: #555555;
}

#downloadBtn:disabled {
    background: #2a2a2a;
    color: #555555;
    cursor: not-allowed;
}