/* Custom styles for ADI System */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #fff;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar-sticky {
    position: sticky;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 10px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: #e7f1ff;
    border-left: 3px solid var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 8px;
    width: 20px;
}

/* Main Content */
main {
    margin-top: 56px;
    padding: 20px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-left-info {
    border-left: 4px solid var(--info-color) !important;
}

/* Question Card Styles */
.question-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.question-number {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.answer-option {
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.answer-option:hover {
    background-color: #f0f0f0;
    border-color: var(--primary-color);
}

.answer-option.selected {
    background-color: #e7f1ff;
    border-color: var(--primary-color);
}

/* Button Styles */
.btn-navigate {
    min-width: 100px;
    margin: 0 5px;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.progress {
    height: 25px;
    border-radius: 15px;
}

.progress-bar {
    font-size: 14px;
    line-height: 25px;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 20px;
    }

    main {
        margin-top: 0;
    }
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert Styles */
.alert-custom {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}