/**
 * Mobility Trailblazers Brand Alignment Styles
 * Aligns the plugin design with official brand guidelines
 *
 * Official Brand Color Palette:
 * - Primary Green: #00694E (buttons, logo, CTAs)
 * - Dark Teal: #084452 (navigation, hero sections)
 * - Secondary Green: #009879 (highlights, secondary buttons)
 * - Accent Blue: #0072BC (links, hover states - optional)
 * - Text Gray: #333333 (body text)
 * - Light Gray: #F4F5F7 (backgrounds)
 * - White: #FFFFFF (content backgrounds)
 *
 * @since 2.5.11
 * @updated 2.5.43 - Brand color alignment
 */

/* ========================================
   Global Brand Alignment
   ======================================== */

/* Apply brand colors to body and main containers */
body.mt-plugin-page,
.mt-plugin-wrapper {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #F4F5F7 !important;
}

/* Headings - Use Poppins like main site */
.mt-jury-dashboard h1,
.mt-jury-dashboard h2,
.mt-evaluation-page h1,
.mt-evaluation-page h2,
.mt-candidate-name {
    font-family: Poppins, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00694E !important;
}

/* Specific override for rankings header h2 */
.mt-jury-dashboard .mt-rankings-header h2 {
    color: #FFFFFF !important;
}

/* ========================================
   Jury Dashboard Styling
   ======================================== */

/* Main dashboard background */
.mt-jury-dashboard,
body .mt-jury-dashboard {
    padding: 30px;
    color: #00694E;
    background-color: #F4F5F7 !important;
}

/* Dashboard header */
.mt-jury-dashboard .mt-dashboard-header {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #F4F5F7 0%, #fff 100%);
    border-radius: 8px;
    border-bottom: 3px solid #0072BC;
}

/* Stats cards */
.mt-jury-dashboard .mt-stat-card {
    padding: 20px;
    background: #fff !important;
    border: 1px solid #0072BC;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mt-jury-dashboard .mt-stat-card:hover {
    border-color: #00694E;
    box-shadow: 0 5px 20px rgb(193 105 60 / 20%);
    transform: translateY(-5px);
}

.mt-jury-dashboard .mt-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #0072BC !important;
}

.mt-jury-dashboard .mt-stat-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00694E !important;
}

/* ========================================
   Candidates List Styling
   ======================================== */

/* Candidates list container */
.mt-candidates-list,
body .mt-jury-dashboard .mt-candidates-list {
    padding: 20px;
    background-color: #F4F5F7 !important;
    border-radius: 8px;
}

/* Individual candidate cards */
.mt-candidate-card,
.mt-candidate-item {
    padding: 20px;
    background: #fff !important;
    border: 2px solid #e5d9c8;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mt-candidate-card:hover,
.mt-candidate-item:hover {
    border-color: #0072BC;
    box-shadow: 0 8px 25px rgb(0 60 61 / 10%);
    transform: translateY(-5px);
}

/* Candidate names */
.mt-candidate-card h3,
.mt-candidate-item h3 {
    margin-bottom: 10px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    color: #00694E !important;
}

/* Candidate meta info */
.mt-candidate-meta {
    font-size: 0.9em;
    color: #084452;
}

/* ========================================
   Candidate Grid Item Styling
   ======================================== */

.mt-candidate-grid-item {
    padding: 20px;
    overflow: hidden;
    background-color: #F4F5F7 !important;
    border: 2px solid #e5d9c8;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mt-candidate-grid-item:hover {
    background-color: #fff !important;
    border-color: #0072BC;
    box-shadow: 0 12px 30px rgb(193 105 60 / 15%);
    transform: translateY(-8px);
}

.mt-candidate-grid-item .mt-candidate-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.mt-candidate-grid-item h3 {
    margin-bottom: 8px;
    font-family: Poppins, sans-serif;
    font-size: 1.2em;
    color: #00694E !important;
}

.mt-candidate-grid-item .mt-candidate-org {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #084452;
}

/* ========================================
   Criteria Stats Styling
   ======================================== */

.mt-criteria-stats {
    margin: 20px 0;
    padding: 25px;
    background-color: #F4F5F7 !important;
    border: 2px solid #0072BC;
    border-radius: 12px;
}

.mt-criteria-stats h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-family: Poppins, sans-serif;
    font-size: 1.3em;
    text-transform: uppercase;
    color: #00694E !important;
    border-bottom: 2px solid #0072BC;
}

.mt-criterion-stat {
    margin-bottom: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-left: 4px solid #0072BC;
}

.mt-criterion-stat:hover {
    box-shadow: 0 3px 10px rgb(0 60 61 / 10%);
    transform: translateX(5px);
}

/* ========================================
   Winners Header Styling
   ======================================== */

.mt-winners-header {
    margin-bottom: 30px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #F4F5F7 0%, #fff 50%, #F4F5F7 100%);
    background-color: #F4F5F7 !important;
    border-radius: 12px;
    border-bottom: 4px solid #0072BC;
}

.mt-winners-header h2 {
    position: relative;
    margin-bottom: 10px;
    font-family: Poppins, sans-serif;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00694E !important;
}

.mt-winners-header h2::after {
    display: block;
    width: 100px;
    height: 4px;
    margin: 20px auto 0;
    background: #0072BC;
    border-radius: 2px;
    content: '';
}

.mt-winners-header p {
    margin-top: 15px;
    font-size: 1.1em;
    color: #084452;
}

/* ========================================
   Buttons and CTAs
   ======================================== */

.mt-btn,
.mt-evaluate-btn,
.mt-submit-btn {
    padding: 12px 25px;
    font-family: Poppins, sans-serif;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
    background-color: #0072BC !important;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mt-btn:hover,
.mt-evaluate-btn:hover,
.mt-submit-btn:hover {
    background-color: #00694E !important;
    box-shadow: 0 5px 15px rgb(0 60 61 / 20%);
    transform: translateY(-2px);
}

/* Secondary buttons */
.mt-btn-secondary {
    background-color: #084452 !important;
}

.mt-btn-secondary:hover {
    background-color: #00694E !important;
}

/* ========================================
   Forms and Inputs
   ======================================== */

.mt-search-input,
input[type="text"],
input[type="email"],
select {
    padding: 10px 15px;
    color: #00694E;
    background-color: #fff !important;
    border: 2px solid #e5d9c8;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mt-search-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #0072BC;
    outline: none;
    box-shadow: 0 0 0 3px rgb(193 105 60 / 10%);
}

/* ========================================
   Progress Bars
   ======================================== */

.mt-progress-bar {
    height: 25px;
    overflow: hidden;
    background-color: #e5d9c8 !important;
    border-radius: 10px;
}

.mt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0072BC 0%, #00694E 100%) !important;
    transition: width 0.5s ease;
}

.mt-progress-text {
    font-weight: 600;
    color: #00694E !important;
    text-align: center;
    justify-content: center;
}

/* ========================================
   Evaluation Forms
   ======================================== */

.mt-evaluation-page {
    padding: 30px;
    background-color: #F4F5F7 !important;
}

.mt-criterion-card {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff !important;
    border: 2px solid #e5d9c8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mt-criterion-card:hover {
    border-color: #0072BC;
    box-shadow: 0 5px 20px rgb(0 60 61 / 10%);
}

/* Score sliders */
.mt-score-slider {
    accent-color: #0072BC;
}

.mt-score-display {
    padding: 8px 15px;
    font-weight: 600;
    color: #fff !important;
    background-color: #0072BC !important;
    border-radius: 6px;
}

/* ========================================
   Tables
   ======================================== */

.mt-rankings-table {
    overflow: hidden;
    background: #fff;
    border: 2px solid #e5d9c8;
    border-radius: 8px;
}

.mt-rankings-table th {
    padding: 15px;
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
    background: linear-gradient(135deg, #00694E 0%, #084452 100%) !important;
}

.mt-rankings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5d9c8;
    color: #00694E;
}

.mt-rankings-table tr:hover {
    background-color: #F4F5F7 !important;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (width <= 768px) {
    .mt-jury-dashboard {
        padding: 15px;
    }
    
    .mt-winners-header h2 {
        font-size: 1.8em;
    }
    
    .mt-candidates-list {
        grid-template-columns: 1fr !important;
    }
    
    .mt-candidate-grid-item {
        margin-bottom: 15px;
    }
}

/* ========================================
   Animation Classes
   ======================================== */

.mt-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Override Specificity Issues
   ======================================== */

body .mt-jury-dashboard,
body.mt-jury-dashboard,
#main .mt-jury-dashboard {
    background-color: #F4F5F7 !important;
}

body .mt-candidates-list,
#main .mt-candidates-list {
    background-color: #F4F5F7 !important;
}

body .mt-candidate-grid-item,
#main .mt-candidate-grid-item {
    background-color: #F4F5F7 !important;
}

body .mt-criteria-stats,
#main .mt-criteria-stats {
    background-color: #F4F5F7 !important;
}

body .mt-winners-header,
#main .mt-winners-header {
    background-color: #F4F5F7 !important;
}
