/* Custom styles for Leadership Assessment Platform */

/* Custom theme colors */
:root {
    --primary-blue: #3a86ff;
    --secondary-green: #38b000;
    --accent-magenta: #d100d1;
    --light-blue: #8ecae6;
    --dark-blue: #1a659e;
    --light-green: #95d5b2;
    --dark-green: #2d6a4f;
    --light-magenta: #f08cae;
    --dark-magenta: #9d0191;
}

/* Global styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

footer {
    margin-top: auto;
    padding: 1.5rem 0;
    background-color: var(--dark-blue) !important;
}

/* Button overrides */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-success {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-info {
    background-color: var(--accent-magenta);
    border-color: var(--accent-magenta);
    color: white;
}

.btn-info:hover,
.btn-info:focus {
    background-color: var(--dark-magenta);
    border-color: var(--dark-magenta);
    color: white;
}

/* Card styling */
.card-header {
    background-color: var(--light-blue) !important;
    color: black;
}

/* Logo styling */
.navbar-brand svg {
    height: 40px;
    width: auto;
}

/* Survey styling */
.question-group {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Dimension progress bar styling */
.dimension-progress .progress {
    overflow: visible;
    border-radius: 0.5rem;
}

.dimension-segments .progress-bar {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 25px;
    color: white;
    padding: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.dimension-segments .progress-bar.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Colors for dimension segments */
.bg-1 { background-color: var(--primary-blue) !important; }
.bg-2 { background-color: var(--secondary-green) !important; }
.bg-3 { background-color: var(--accent-magenta) !important; }
.bg-4 { background-color: var(--dark-blue) !important; }
.bg-5 { background-color: var(--dark-green) !important; }

.question-text {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--bs-secondary);
}

/* Button-based likert layout */
.button-likert-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

.button-likert-option {
    width: 19%;
}

.btn-option {
    display: block;
    width: 100%;
    padding: 6px 4px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-option:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.btn-option.selected {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keep existing styles for backward compatibility */
.likert-scale {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1.5rem;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 19%;
}

.likert-option .form-check {
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.likert-option .form-check:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.likert-option .form-check-input {
    margin: 0 auto 0.5rem auto;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    display: block;
}

.likert-option .form-check-label {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: block;
    margin-top: 0.25rem;
}

.error-message {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.progress-container {
    margin: 2rem 0;
}

/* Admin dashboard styles */
.dashboard-stat {
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.2s;
}

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

.dashboard-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-stat p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--bs-secondary);
}

.client-table th, .client-table td {
    vertical-align: middle;
}

/* Survey link display */
.survey-link-container {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    word-break: break-all;
    background-color: var(--bs-light);
    padding: 0.5rem;
    border-radius: 0.25rem;
    max-height: 100px;
    overflow-y: auto;
    font-size: 0.875rem;
}

/* Survey intro page */
.intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-card {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .likert-option label {
        font-size: 0.75rem;
    }
    
    .question-group {
        padding: 1rem;
    }
    
    .dashboard-stat h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .likert-scale {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .likert-option {
        flex-direction: row;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .likert-option input {
        margin-right: 0.5rem;
    }
    
    .scale-labels {
        display: none;
    }
    
    /* Mobile view for new table layout */
    .likert-table {
        width: 100%;
    }
    
    .radio-buttons-row, .label-row {
        display: flex;
    }
    
    .radio-cell, .label-cell {
        display: block;
        float: left;
    }
}
