/* RTI Sadahaq Custom Styles - Saffron Dominant Theme (80-15-5) */
/* Version 2.0 - Tricolor Only - NO other colors allowed */

:root {
    /* ONLY THREE COLORS ALLOWED */
    --saffron: #FF9933;
    --white: #FFFFFF;
    --green: #138808;
    
    /* Usage mapping */
    --primary-color: #FF9933;      /* Saffron - 80% coverage */
    --text-color: #138808;         /* Green - for text */
    --accent-color: #FFFFFF;       /* White - 15% coverage */
    --success-color: #138808;
    --border-color: #FFFFFF;
    
    /* Transparency for subtle effects */
    --green-transparent: rgba(19, 136, 8, 0.1);
    --white-transparent: rgba(255, 255, 255, 0.9);
}

/* BODY - 80% SAFFRON BACKGROUND */
body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: #FF9933;  /* Pure saffron background - 80% coverage */
    color: #138808;       /* Green text for readability */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Tricolor header bar - MANDATORY at top */
.tricolor-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(to right, 
        #FF9933 0%, #FF9933 33%, 
        #FFFFFF 33%, #FFFFFF 66%, 
        #138808 66%, #138808 100%
    );
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* HEADERS - Saffron background with green text */
header {
    background: #FF9933 !important;
    color: #138808 !important;
    border-bottom: 3px solid #FFFFFF;
}

header h1, header h2, header h3, header p {
    color: #138808 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* NAVIGATION - Saffron with green text */
.navbar {
    background: #FF9933 !important;
    border-bottom: 2px solid #FFFFFF;
}

.navbar .nav-link {
    color: #138808 !important;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #138808 !important;
    border-bottom: 2px solid #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    background: #FFFFFF;
    color: #138808 !important;
    border-radius: 4px;
}

/* BUTTONS - Saffron with green text and white borders */
.btn-primary {
    background: #FF9933 !important;
    color: #138808 !important;
    border: 3px solid #FFFFFF !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #138808 !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(19, 136, 8, 0.2);
}

.btn-success {
    background: #138808 !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
}

.btn-success:hover {
    background: #FFFFFF !important;
    color: #138808 !important;
    border: 3px solid #138808 !important;
}

.btn-outline-primary {
    background: #FFFFFF !important;
    color: #138808 !important;
    border: 3px solid #FF9933 !important;
}

.btn-outline-primary:hover {
    background: #FF9933 !important;
    color: #138808 !important;
}

/* CARDS - Saffron background with white corner borders */
.card {
    background: #FF9933 !important;
    border: 4px solid #FFFFFF !important;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(19, 136, 8, 0.1);
    color: #138808;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(19, 136, 8, 0.15);
    border-color: #FFFFFF;
}

.card-header {
    background: #FF9933 !important;
    color: #138808 !important;
    border-bottom: 3px solid #FFFFFF !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.card-body {
    background: #FF9933 !important;
    color: #138808 !important;
}

.card-title {
    color: #138808 !important;
    font-weight: 700;
}

.card-text {
    color: #138808 !important;
}

/* FORMS - White backgrounds for inputs */
.form-control, .form-select {
    background: #FFFFFF !important;
    color: #138808 !important;
    border: 2px solid #138808 !important;
    border-radius: 6px;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    background: #FFFFFF !important;
    color: #138808 !important;
    border: 3px solid #FF9933 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
}

.form-control::placeholder {
    color: rgba(19, 136, 8, 0.5) !important;
}

.form-label {
    color: #138808 !important;
    font-weight: 600;
    margin-bottom: 8px;
}

/* TYPOGRAPHY - Green text on saffron */
h1, h2, h3, h4, h5, h6 {
    color: #138808 !important;
    font-weight: 700;
}

p, span, div {
    color: #138808;
}

.lead {
    color: #138808 !important;
    font-weight: 500;
}

a {
    color: #138808 !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: #138808 !important;
    border-bottom: 2px solid #FFFFFF;
}

/* TEXT COLORS - Only green on saffron, white on green */
.text-primary {
    color: #138808 !important;
}

.text-success {
    color: #138808 !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-muted {
    color: rgba(19, 136, 8, 0.7) !important;
}

/* BACKGROUNDS - 80% Saffron rule */
.bg-primary {
    background: #FF9933 !important;
    color: #138808 !important;
}

.bg-success {
    background: #138808 !important;
    color: #FFFFFF !important;
}

.bg-light {
    background: #FFFFFF !important;
    color: #138808 !important;
}

.bg-white {
    background: #FFFFFF !important;
    color: #138808 !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border-radius: 8px;
    transition: transform 0.2s;
}

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

.feature-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.stat-box {
    padding: 20px;
    border-right: 1px solid #dee2e6;
}

.stat-box:last-child {
    border-right: none;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

/* CAPTCHA Canvas */
#captchaCanvas {
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }
}



/* ALERT BOXES - Saffron with green text */
.alert {
    background: #FF9933 !important;
    color: #138808 !important;
    border: 3px solid #FFFFFF !important;
    border-radius: 8px;
}

.alert-info {
    background: #FF9933 !important;
    color: #138808 !important;
    border-left: 5px solid #138808 !important;
}

.alert-success {
    background: #138808 !important;
    color: #FFFFFF !important;
    border-left: 5px solid #FFFFFF !important;
}

/* TABLES - Saffron with white borders */
table {
    background: #FF9933 !important;
    color: #138808 !important;
}

thead {
    background: #138808 !important;
    color: #FFFFFF !important;
}

tbody tr {
    border-bottom: 2px solid #FFFFFF;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* BADGES - Green with white text */
.badge {
    background: #138808 !important;
    color: #FFFFFF !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* FOOTER - Saffron with green text */
footer {
    background: #FF9933 !important;
    color: #138808 !important;
    border-top: 4px solid #FFFFFF;
}

footer h5 {
    color: #138808 !important;
}

footer a {
    color: #138808 !important;
}

footer a:hover {
    color: #FFFFFF !important;
}

/* FEATURE ICONS - White circles with green icons */
.feature-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #138808;
    margin-bottom: 15px;
}

.feature-icon i {
    color: #138808;
}

/* STATISTICS BOXES - Saffron with white corners */
.stat-box {
    padding: 20px;
    border-right: 3px solid #FFFFFF;
    background: #FF9933;
}

.stat-box:last-child {
    border-right: none;
}

.stat-box h2 {
    color: #138808 !important;
    font-weight: 700;
    font-size: 2.5rem;
}

/* STEP NUMBERS - Green circles with white text */
.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #138808;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    border: 3px solid #FFFFFF;
}

/* TIMELINE - Green with white markers */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FFFFFF;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    background: #138808;
}

.timeline-content {
    background: #FF9933;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #FFFFFF;
    color: #138808;
}

/* CAPTCHA CANVAS */
#captchaCanvas {
    border: 2px solid #138808;
    border-radius: 4px;
    background: #FFFFFF;
}

/* LOADING SPINNER - Green */
.spinner-border {
    color: #138808 !important;
    border-color: #138808 !important;
    border-right-color: transparent !important;
}

/* MODAL - Saffron with white overlay */
.modal-content {
    background: #FF9933 !important;
    border: 4px solid #FFFFFF !important;
    color: #138808 !important;
}

.modal-header {
    border-bottom: 3px solid #FFFFFF !important;
    background: #FF9933 !important;
}

.modal-title {
    color: #138808 !important;
}

.modal-footer {
    border-top: 3px solid #FFFFFF !important;
    background: #FF9933 !important;
}

/* BREADCRUMB - Green text with white separators */
.breadcrumb {
    background: #FF9933 !important;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #FFFFFF;
}

.breadcrumb-item {
    color: #138808 !important;
}

.breadcrumb-item.active {
    color: #138808 !important;
    font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #FFFFFF !important;
    content: "›";
    font-size: 1.2rem;
}

/* PAGINATION - Saffron with green numbers */
.pagination .page-link {
    background: #FF9933 !important;
    color: #138808 !important;
    border: 2px solid #FFFFFF !important;
    margin: 0 3px;
    border-radius: 6px !important;
}

.pagination .page-link:hover {
    background: #138808 !important;
    color: #FFFFFF !important;
}

.pagination .page-item.active .page-link {
    background: #138808 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* PROGRESS BAR - Green progress on white track */
.progress {
    background: #FFFFFF !important;
    border: 2px solid #138808;
    height: 25px;
    border-radius: 12px;
}

.progress-bar {
    background: #138808 !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

/* LIST GROUP - Saffron items with white borders */
.list-group-item {
    background: #FF9933 !important;
    color: #138808 !important;
    border: 2px solid #FFFFFF !important;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.list-group-item.active {
    background: #138808 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Larger text on mobile for saffron bg */
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 2px solid #FFFFFF;
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* SCROLLBAR - Green thumb on saffron track */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #FF9933;
}

::-webkit-scrollbar-thumb {
    background: #138808;
    border-radius: 6px;
    border: 2px solid #FFFFFF;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f6906;
}

/* SELECTION - Green background with white text */
::selection {
    background: #138808;
    color: #FFFFFF;
}

::-moz-selection {
    background: #138808;
    color: #FFFFFF;
}

/* PRINT STYLES */
@media print {
    body {
        background: #FFFFFF !important;
        color: #138808 !important;
    }
    
    .navbar, footer, .btn {
        display: none;
    }
}

/* ENSURE NO OTHER COLORS */
* {
    outline-color: #138808 !important;
}

/* HIGH CONTRAST MODE for accessibility */
@media (prefers-contrast: high) {
    .card {
        border-width: 4px !important;
    }
    
    .btn {
        border-width: 4px !important;
    }
}