/* Medieval Theme CSS - Global Styles for War Backend */
/* Import MedievalSharp Font */
.medieval-container {
    background-image: url("/assets/static/images/login_bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.medieval-page-container {
    background-image: url("/assets/static/images/page_bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.medieval-scrollable-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--shadow-light), var(--shadow-medium));
}

/* Medieval Card Styles */
.medieval-card {
    padding: 2rem;
    background: linear-gradient(var(--bg-primary) 0%, var(--bg-secondary) 25%, var(--bg-dark) 75%, var(--bg-darker) 100%);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    box-shadow:
        0 20px 40px var(--shadow-heavy),
        0 8px 16px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.medieval-card-sm {
    padding: 1rem;
    border-radius: 8px;
}

.medieval-card-lg {
    padding: 2rem;
    border-radius: 16px;
}

/* Medieval Typography */
.medieval-title {
    color: var(--gold-light);
    font-family: 'MedievalSharp', 'Georgia', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.medieval-title-sm {
    font-size: 1.4rem;
}

.medieval-title-lg {
    font-size: 2.2rem;
}

.medieval-subtitle {
    color: var(--text-secondary);
    font-family: 'MedievalSharp', 'Georgia', cursive;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.medieval-text {
    color: var(--text-secondary);
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.medieval-text-muted {
    color: var(--text-muted);
}

/* Medieval Form Elements */
.medieval-label {
    color: var(--text-secondary);
    font-family: 'MedievalSharp', 'Georgia', cursive;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.medieval-input {
    background: linear-gradient(135deg,
            rgba(107, 107, 115, 0.2) 0%,
            rgba(74, 74, 82, 0.3) 50%,
            rgba(46, 46, 54, 0.4) 100%);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.1);
}

.medieval-input:focus {
    outline: none;
    border-color: var(--border-secondary);
    background: linear-gradient(135deg,
            rgba(107, 107, 115, 0.3) 0%,
            rgba(74, 74, 82, 0.4) 50%,
            rgba(46, 46, 54, 0.5) 100%);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(139, 139, 147, 0.3),
        0 1px 2px rgba(255, 255, 255, 0.15);
}

.medieval-input::placeholder {
    color: rgba(240, 240, 240, 0.5);
    font-style: italic;
}

.medieval-textarea {
    min-height: 120px;
    resize: vertical;
}

.medieval-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0f0f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Medieval Links */
.medieval-link {
    color: var(--gold-light) !important;
    font-family: 'MedievalSharp', 'Georgia', cursive;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.medieval-link:hover {
    color: var(--gold-light);
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(212, 175, 55, 0.4);
    text-decoration: underline;
}

.medieval-link-danger {
    color: var(--blood-red);
}

.medieval-link-success {
    color: var(--forest-green);
}

.medieval-link-info {
    color: var(--royal-blue);
}

/* Medieval Buttons (extends existing button system) */
.medieval-btn-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.medieval-btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Medieval Social Links */
.medieval-social-link {
    display: inline-block;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg,
            rgba(74, 74, 82, 0.6) 0%,
            rgba(46, 46, 54, 0.7) 100%);
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-light);
    text-decoration: none;
}

.medieval-social-link:hover {
    background: linear-gradient(135deg,
            rgba(74, 74, 82, 0.8) 0%,
            rgba(46, 46, 54, 0.9) 100%);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}


/* Medieval Checkbox */
.medieval-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.medieval-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

.medieval-checkbox-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Medieval Text Utilities */
.medieval-text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}



/* Form Elements */
.medieval-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius);
    color: var(--text);
    padding: 0.75rem 1rem;
    font-family: 'MedievalSharp', 'Georgia', serif;
    transition: all 0.3s ease;
}

.medieval-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
    outline: none;
}

.medieval-input::placeholder {
    color: var(--text-muted);
}

.medieval-label {
    color: var(--text);
    font-family: 'MedievalSharp', 'Georgia', cursive;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Medieval Logo */
.medieval-logo {
    border-radius: 12px;
    box-shadow:
        0 8px 16px var(--shadow-medium),
        0 4px 8px var(--shadow-light);
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
}

.medieval-logo:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 24px var(--shadow-heavy),
        0 6px 12px var(--shadow-medium);
}

/* Medieval Alerts */
.medieval-alert {
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            var(--bg-dark) 100%);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.medieval-alert-warning {
    border-color: rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg,
            rgba(255, 193, 7, 0.1) 0%,
            rgba(255, 193, 7, 0.05) 100%);
}

.medieval-alert-danger {
    border-color: rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg,
            rgba(220, 53, 69, 0.1) 0%,
            rgba(220, 53, 69, 0.05) 100%);
}

.medieval-alert-success {
    border-color: rgba(40, 167, 69, 0.5);
    background: linear-gradient(135deg,
            rgba(40, 167, 69, 0.1) 0%,
            rgba(40, 167, 69, 0.05) 100%);
}

.medieval-alert-info {
    border-color: rgba(23, 162, 184, 0.5);
    background: linear-gradient(135deg,
            rgba(23, 162, 184, 0.1) 0%,
            rgba(23, 162, 184, 0.05) 100%);
}

/* Edit Profile Page Styles */
.medieval-avatar-circle {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.medieval-avatar-image {
    background-color: var(--bg-primary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--border-primary);
}

.medieval-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.medieval-avatar-text {
    color: var(--text);
    font-size: 2rem;
    font-weight: bold;
}

.medieval-username {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.medieval-user-info {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}


.medieval-file-upload {
    width: 100%;
}

.medieval-file-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px dashed var(--border-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    min-height: 60px;
}

.medieval-file-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--blood-red);
}

.medieval-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 12px;
    flex-shrink: 0;
}

.medieval-file-icon i {
    color: var(--text);
    font-size: 1.2rem;
}

.medieval-file-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.medieval-file-name {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.medieval-file-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-circle-small {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
}

.avatar-delete-button {
    position: absolute;
    top: -5px;
    right: -5px;
}

.avatar-delete-button .btn-image i {
    color: #f0f0f0;
    /* Change icon color to a light grey/white */
}

.file-selected .medieval-file-name {
    color: var(--text-primary);
}

/* Medieval Cards */
.medieval-card-danger {
    background: linear-gradient(135deg, #7c2d12, #991b1b);
    border-left: 4px solid #dc2626;
}

.medieval-card-success {
    background: linear-gradient(135deg, #1e3a8a, #059669);
    border-left: 4px solid #10b981;
}

.medieval-card-danger .card-body {
    text-align: center;
}

.medieval-card-success .card-body {
    text-align: center;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MedievalSharp', 'Georgia', cursive;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .medieval-container {
        padding-top: 5rem !important;
    }

    .medieval-avatar-circle {
        width: 80px;
        height: 80px;
    }

    .medieval-avatar-image,
    .medieval-avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .medieval-avatar-text {
        font-size: 1.5rem;
    }
}

/* Medieval Tables */
.medieval-table {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.medieval-table th {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'MedievalSharp', 'Georgia', cursive;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}

.medieval-table td {
    color: var(--text-secondary);
    padding: 12px;
    border-bottom: 1px solid rgba(139, 139, 147, 0.1);
}

.medieval-table tr:hover {
    background: rgba(107, 107, 115, 0.1);
}

/* Medieval Navigation */
.medieval-nav {
    background: linear-gradient(135deg,
            var(--bg-primary) 0%,
            var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--border-primary);
    box-shadow: 0 4px 8px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.medieval-nav-link {
    color: var(--text-secondary);
    font-family: 'MedievalSharp', 'Georgia', cursive;
    text-decoration: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.medieval-nav-link:hover {
    color: var(--text-primary);
    background: rgba(107, 107, 115, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.medieval-nav-link.active {
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Medieval Modals */
.medieval-modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.medieval-modal-content {
    background: linear-gradient(135deg,
            var(--bg-primary) 0%,
            var(--bg-secondary) 25%,
            var(--bg-dark) 75%,
            var(--bg-darker) 100%);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    box-shadow:
        0 20px 40px var(--shadow-heavy),
        0 8px 16px var(--shadow-medium);
}

/* Medieval Utility Classes */
.medieval-shadow-sm {
    box-shadow: 0 2px 4px var(--shadow-light);
}

.medieval-shadow {
    box-shadow: 0 4px 8px var(--shadow-light);
}

.medieval-shadow-lg {
    box-shadow: 0 8px 16px var(--shadow-medium);
}

.medieval-shadow-xl {
    box-shadow: 0 20px 40px var(--shadow-heavy);
}

.medieval-border {
    border: 2px solid var(--border-primary);
}

.medieval-border-secondary {
    border: 2px solid var(--border-secondary);
}

.medieval-rounded {
    border-radius: 8px;
}

.medieval-rounded-lg {
    border-radius: 12px;
}

.medieval-backdrop-blur {
    backdrop-filter: blur(10px);
}

.medieval-bg-primary {
    background: var(--bg-primary);
}

.medieval-bg-secondary {
    background: var(--bg-secondary);
}

.medieval-bg-dark {
    background: var(--bg-dark);
}

.medieval-bg-darker {
    background: var(--bg-darker);
}

.medieval-bg-danger {
    background: var(--blood-red);
}

.medieval-text-primary {
    color: var(--text-primary) !important;
}

.medieval-text-secondary {
    color: var(--text-secondary) !important;
}

.medieval-text-blue {
    color: var(--royal-blue) !important;
}


.medieval-text-muted {
    color: var(--text-muted) !important;
}

.medieval-text-danger {
    color: var(--blood-red) !important;
}

.medieval-text-gold-primary {
    color: var(--gold-primary) !important;
}

.medieval-text-gold-secondary {
    color: var(--gold-secondary) !important;
}

.medieval-text-gold-light {
    color: var(--gold-light) !important;
}

.medieval-text-success {
    color: var(--forest-green) !important;
}

/* Medieval World Status Enhanced Styles */
.medieval-world-status-hero {
    background: linear-gradient(135deg, var(--stone-dark) 0%, var(--stone-primary) 50%, var(--stone-secondary) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-heavy);
    border: 2px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.medieval-world-status-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(184, 134, 11, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.medieval-stat-card {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-medium);
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.medieval-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.medieval-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--shadow-heavy);
    border-color: var(--border-secondary);
}

.medieval-stat-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
}

.medieval-stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
    font-family: 'MedievalSharp', 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.medieval-analytics-card {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-medium);
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.medieval-analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-heavy);
    border-color: var(--border-secondary);
}

.medieval-analytics-icon {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--stone-dark);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.4);
}

.medieval-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.medieval-metric-row:hover {
    background: rgba(184, 134, 11, 0.1);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
}

.medieval-metric-row:last-child {
    border-bottom: none;
}

.medieval-metric-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.medieval-metric-value {
    font-weight: 700;
    color: var(--gold-light);
    font-family: 'MedievalSharp', 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.medieval-timeline-card {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px var(--shadow-heavy);
    border: 2px solid var(--border-primary);
    backdrop-filter: blur(10px);
}

.medieval-progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.medieval-progress-bar {
    width: 200px;
    height: 10px;
    background: var(--stone-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px var(--shadow-medium);
    border: 1px solid var(--border-primary);
}

.medieval-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    border-radius: 8px;
    transition: width 0.8s ease;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.4);
}

.medieval-timeline {
    position: relative;
    padding-left: 2rem;
}

.medieval-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-primary), var(--bronze-primary));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
}

.medieval-timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.medieval-timeline-marker {
    position: absolute;
    left: -8px;
    top: 1rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
}

.medieval-timeline-marker.completed {
    background: linear-gradient(135deg, var(--forest-green), var(--dark-green));
    color: white;
}

.medieval-timeline-marker.upcoming {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--stone-dark);
    animation: medievalPulse 2s infinite;
}

.medieval-timeline-marker.future {
    background: var(--stone-light);
    color: var(--text-muted);
}

@keyframes medievalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(184, 134, 11, 0); }
}

.medieval-timeline-content {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--gold-primary);
    box-shadow: 0 4px 16px var(--shadow-medium);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.medieval-timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px var(--shadow-heavy);
    border-left-color: var(--gold-light);
}

.medieval-timeline-event.completed .medieval-timeline-content {
    border-left-color: var(--forest-green);
    background: linear-gradient(145deg, rgba(39, 192, 39, 0.1) 0%, rgba(0, 100, 0, 0.05) 100%);
}

.medieval-timeline-event.upcoming .medieval-timeline-content {
    border-left-color: var(--gold-light);
    background: linear-gradient(145deg, rgba(184, 134, 11, 0.1) 0%, rgba(139, 105, 20, 0.05) 100%);
}

.medieval-timeline-day {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.medieval-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.medieval-status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.medieval-status-badge.completed {
    background: linear-gradient(135deg, rgba(39, 192, 39, 0.2), rgba(0, 100, 0, 0.1));
    color: var(--forest-green);
    border: 1px solid var(--forest-green);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.medieval-status-badge.upcoming {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(139, 105, 20, 0.1));
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.medieval-status-badge.future {
    background: linear-gradient(135deg, rgba(107, 107, 115, 0.2), rgba(74, 74, 82, 0.1));
    color: var(--text-muted);
    border: 1px solid var(--border-primary);
}