/* Grid layout matching course sessions style */
#course-panel{
.edit-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.edit-info-grid.two-column {
    grid-template-columns: 2fr 1fr;
}

.edit-info-grid.compact-grid {
    grid-template-columns: 3fr 1fr;
    gap: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.edit-info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.edit-info-item.name-item {
    text-align: left;
    align-items: stretch;
}

.edit-info-item.name-item.large {
    grid-column: 1;
}

.edit-info-item.combined-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 12px;
}

.combined-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
}

.combined-field:first-child {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.combined-field:last-child {
    padding-top: 8px;
}

.edit-info-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.edit-info-item .edit-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.edit-icon.icon-blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; }
.edit-icon.icon-green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #047857; }
.edit-icon.icon-amber { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; }

.edit-icon.small {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.edit-info-item label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.edit-info-item.name-item label {
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.edit-info-item .form-control,
.edit-info-item .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    background-color: white;
    color: #1e293b;
}

.edit-info-item.name-item .form-control {
    font-size: 0.95rem;
    text-align: left;
}

.edit-info-item .form-control:focus,
.edit-info-item .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Duration selector specific */
.duration-selects {
    display: flex;
    gap: 6px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.duration-selects .form-select {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 4px 8px;
    min-width: 55px;
    text-align: center;
}

.duration-label {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 2px;
    font-weight: 600;
}

/* Make duration selects more readable in combined field */
.combined-field .duration-selects {
    gap: 4px;
}

.combined-field .duration-selects .form-select {
    font-size: 0.85rem;
    min-width: 50px;
    padding: 3px 6px;
}

/* Toggle switch styling for enabled checkbox */
.edit-info-item .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.edit-info-item .form-check-input[type="checkbox"] {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.edit-info-item .form-check-input[type="checkbox"]:checked {
    background: #10b981;
    border-color: #10b981;
}

.edit-info-item .form-check-input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.edit-info-item .form-check-input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

/* Smaller toggle for combined field */
.combined-field .form-check-input[type="checkbox"] {
    width: 36px;
    height: 20px;
    border-radius: 10px;
}

.combined-field .form-check-input[type="checkbox"]::before {
    width: 12px;
    height: 12px;
    top: 2px;
    left: 2px;
}

.combined-field .form-check-input[type="checkbox"]:checked::before {
    transform: translateX(16px);
}

.edit-info-item .form-check-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
}

/* Description section */
.description-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.description-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.description-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
    color: #4338ca;
}

.description-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Calendar settings section */
.calendar-section {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #fde68a;
    margin-bottom: 15px;
}

.calendar-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
    color: #f59e0b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.color-row {
    display: flex;
    gap: 15px;
}

.color-row > div {
    flex: 1;
}

.form-control-color {
    width: 100%;
    height: var(--bit-form-field-height, 38px);
    padding: 3px;
    border-radius: 6px;
}

/* Two-panel layout for description and calendar */
.two-panel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.panel-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.panel-item.description-panel {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.panel-item.calendar-panel {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.description-panel .panel-icon {
    color: #0284c7;
}

.calendar-panel .panel-icon {
    color: #f59e0b;
}

.panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.panel-item textarea {
    font-size: 0.875rem;
}

.color-row.compact {
    display: flex;
    gap: 10px;
}

.color-row.compact > div {
    flex: 1;
}

.color-row.compact .form-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    color: #64748b;
}

.color-row.compact .form-control-color {
    height: 32px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .edit-info-grid.compact-grid {
        grid-template-columns: 1fr;
    }
    
    .two-panel-layout {
        grid-template-columns: 1fr;
    }
    
    .edit-info-item.combined-item {
        flex-direction: column;
    }
}
}