:root {
            --primary-color: #8B4513;
            --secondary-color: #D2691E;
            --accent-color: #A0522D;
            --gold-color: #DAA520;
            --light-color: #F5F5DC;
            --dark-color: #3E2723;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
        }
        .roman-font {
            font-family: 'Cinzel', serif;
        }
 .page-header {
            background: linear-gradient(135deg, rgba(245, 245, 220, 0.9) 0%, rgba(210, 105, 30, 0.2) 100%);
            padding: 2rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(139, 69, 19, 0.2);
            position: relative;
            overflow: hidden;   color: var(--text-color);
        }
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        .breadcrumb-item.active {
            color: var(--text-color);
        }
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
        }
        .btn-outline-primary {
            color: var(--primary-color);
            border-color: var(--primary-color);
            font-weight: 600;
        }
        .btn-outline-primary:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        .conversion-mode {
            display: flex;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 1.5rem;
        }
        .mode-btn {
            flex: 1;
            padding: 1rem;
            background-color: #f8f9fa;
            border: none;
            border-right: 1px solid #ddd;
            font-weight: 600;
            transition: all 0.3s;
        }
        .mode-btn:last-child {
            border-right: none;
        }
        .mode-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        .mode-btn:hover:not(.active) {
            background-color: #e9ecef;
        }
        .roman-display {
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            padding: 1.5rem;
            background-color: white;
            border-radius: 6px;
            border: 2px dashed var(--gold-color);
            margin: 1rem 0;
            color: var(--dark-color);
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .date-display {
            font-size: 1.8rem;
            text-align: center;
            padding: 1rem;
            background-color: white;
            border-radius: 6px;
            margin: 1rem 0;
            color: var(--dark-color);
        }
        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(139, 69, 19, 0.1);
        }
        .breakdown-label {
            font-weight: 600;
            color: var(--primary-color);
        }
        .breakdown-value {
            font-family: 'Cinzel', serif;
            font-weight: 600;
        }
        .numeral-examples {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .example-btn {
            background-color: rgba(139, 69, 19, 0.1);
            border: 1px solid rgba(139, 69, 19, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Cinzel', serif;
        }
        .example-btn:hover {
            background-color: rgba(139, 69, 19, 0.2);
            transform: translateY(-2px);
        }
        .numeral-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .numeral-table th, .numeral-table td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid #ddd;
        }
        .numeral-table th {
            background-color: var(--light-color);
            font-weight: 600;
            color: var(--primary-color);
        }
        .numeral-table tr:nth-child(even) {
            background-color: rgba(139, 69, 19, 0.05);
        }
        .numeral-table .roman-cell {
            font-family: 'Cinzel', serif;
            font-weight: 600;
            font-size: 1.2rem;
        }
        .historical-dates {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .historical-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid #ddd;
            transition: all 0.3s;
            cursor: pointer;
        }
        .historical-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-color: var(--primary-color);
        }
        .historical-date {
            font-family: 'Cinzel', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        .historical-event {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        .info-box i {
            color: var(--primary-color);
            margin-right: 0.5rem;
        }
        .tooltip-icon {
            color: var(--primary-color);
            cursor: help;
            margin-left: 0.25rem;
        }
        @media (max-width: 768px) {
            .roman-display {
                font-size: 1.8rem;
                padding: 1rem;
            }
            .conversion-mode {
                flex-direction: column;
            }
            .mode-btn {
                border-right: none;
                border-bottom: 1px solid #ddd;
            }
        }
        .step-indicator {
            display: flex;
            margin-bottom: 2rem;
        }
        .step {
            flex: 1;
            text-align: center;
            position: relative;
            padding-bottom: 0.5rem;
        }
        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 15px;
            right: 0;
            width: 100%;
            height: 2px;
            background-color: #ddd;
            z-index: 1;
        }
        .step.active:not(:last-child)::after {
            background-color: var(--primary-color);
        }
        .step-circle {
            width: 30px;
            height: 30px;
            background-color: #ddd;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 0.5rem;
            position: relative;
            z-index: 2;
            color: white;
            font-weight: 600;
        }
        .step.active .step-circle {
            background-color: var(--primary-color);
        }
        .step-label {
            font-size: 0.9rem;
            font-weight: 600;
        }