/* Main Layout Styles */
.main-layout {
    display: flex;
    min-height: calc(100vh - 150px);
    background-color: #f8f9fa;
}

/* Side Panels */
.side-panel {
    flex: 0 0 200px;
    background-color: #f4f4f4;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.side-panel-left {
    border-right: 1px solid #ddd;
}

.side-panel-right {
    border-left: 1px solid #ddd;
}

.step-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Center Content */
.center-content {
    flex: 1;
    padding: 0 20px;
    max-width: calc(100% - 400px);
    overflow-y: auto;
}

/* Progress Bar */
.progress-container {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

/* Step Containers */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Styles */
.paragraph-cell {
    cursor: pointer;
    transition: background-color 0.2s;
    vertical-align: middle;
}

.paragraph-cell.selected {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.paragraph-cell:hover {
    background-color: #f0f0f0;
}

.topic-header {
    font-weight: bold;
    background-color: #e9ecef;
    width: 110px;
    font-size: 0.9rem;
}

/* Checkbox Styles */
.paragraph-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Preview Button */
.preview-btn {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.preview-btn:hover {
    opacity: 1;
}

/* Signature Pad */
.signature-container {
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: white;
    transition: border-color 0.2s;
    max-width: 100%;
    margin: 0 auto;
}

.signature-container.signature-hovering {
    border-color: #dc3545;
}

.signature-canvas {
    width: 100%;
    height: auto;
    background-color: white;
    border-radius: 6px;
    cursor: crosshair;
}

/* Responsive Design */
@media (max-width: 992px) {
    .side-panel {
        flex: 0 0 120px;
    }
    
    .center-content {
        max-width: calc(100% - 240px);
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .side-panel {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: center;
        border: none;
        padding: 10px;
    }
    
    .side-panel-left, .side-panel-right {
        border: none;
    }
    
    .step-image {
        width: 120px;
        height: auto;
    }
    
    .center-content {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Card Styles */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Alert Styles */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
}

/* Footer */
footer {
    margin-top: auto;
}