:root {
    --brand-red: #e5173f;
    --brand-red-dark: #c91538;
    --brand-teal: #54b9b3;
    --brand-teal-dark: #419f9a;
    --brand-teal-darker: #288983;
    --brand-purple: #4b112c;
    --brand-purple-light: #5d2941;
    --brand-purple-dark: #250816;
}

html, body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Mode Selector */
.mode-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.4rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.28rem;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    background: #f1f5f9;
    color: var(--brand-purple);
}

.mode-btn.active {
    background: var(--brand-purple);
    color: white;
}

.mode-icon {
    font-size: 0.8rem;
}

/* Presentation Navigation */
.presentation-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--brand-purple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: var(--brand-purple);
    color: white;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-dots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(75, 17, 44, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dot:hover {
    background: var(--brand-teal);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--brand-red);
    transform: scale(1.3);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--brand-teal-dark);
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-red);
    border-color: var(--brand-red-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-teal);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* CV Specific Styles */

/* CV Mode Wrapper */
.cv-wrapper.cv-mode {
    max-width: 900px;
    margin: 2rem auto;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

.cv-wrapper.cv-mode .cv-section-full {
    display: block;
}

.cv-wrapper.cv-mode .cv-section-full:first-child .section-inner {
    padding: 0;
}

.cv-wrapper.cv-mode .cv-section-full .section-inner {
    padding: 0 3rem;
}

.cv-wrapper.cv-mode .cv-section-full:not(:first-child) {
    padding-top: 2.5rem;
    padding-bottom: 0;
}

.cv-wrapper.cv-mode .cv-section-full:last-child .section-inner {
    padding-bottom: 0;
}

.cv-wrapper.cv-mode .cv-footer {
    margin-top: 2.5rem;
    padding: 1.25rem 3rem;
}

/* Presentation Mode Wrapper */
.cv-wrapper.presentation-mode {
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.cv-wrapper.presentation-mode .cv-section-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}

.cv-wrapper.presentation-mode .cv-section-full:nth-child(odd) {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.cv-wrapper.presentation-mode .cv-section-full:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cv-wrapper.presentation-mode .cv-section-full:first-child {
    background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 50%, var(--brand-purple-dark) 100%);
}

.cv-wrapper.presentation-mode .section-inner {
    max-width: 900px;
    width: 100%;
    padding: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.cv-wrapper.presentation-mode .cv-section-full:first-child .section-inner {
    max-width: 1000px;
}

.cv-wrapper.presentation-mode .cv-header {
    background: transparent;
    padding: 0;
}

.cv-wrapper.presentation-mode .cv-header::after {
    display: none;
}

.cv-wrapper.presentation-mode .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Experience Carousel - Presentation Mode */
.experience-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-wrapper.cv-mode .experience-carousel-wrapper {
    display: block;
}

.cv-wrapper.cv-mode .experience-slide {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 300;
    color: var(--brand-purple);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.carousel-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -8px;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--brand-purple);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

.cv-wrapper.presentation-mode .experience-carousel {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
}

.cv-wrapper.presentation-mode .experience-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cv-wrapper.presentation-mode .experience-slide .experience-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    padding-left: 0;
}

.cv-wrapper.presentation-mode .experience-slide .experience-item::before {
    display: none;
}

.cv-wrapper.presentation-mode .experience-slide .experience-title {
    font-size: 1.3rem;
}

.cv-wrapper.presentation-mode .experience-slide .experience-company {
    font-size: 1.1rem;
}

.cv-wrapper.presentation-mode .experience-slide .experience-description {
    font-size: 1rem;
    line-height: 1.7;
}

.cv-wrapper.presentation-mode .experience-slide .tech-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(75, 17, 44, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot:hover {
    background: var(--brand-teal);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--brand-red);
    transform: scale(1.3);
}

/* Skills Carousel - Presentation Mode */
.cv-wrapper.cv-mode .skills-carousel-wrapper .section-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cv-wrapper.cv-mode .skills-slide {
    display: block;
}

.cv-wrapper.presentation-mode .skills-carousel {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
}

.cv-wrapper.presentation-mode .skills-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cv-wrapper.presentation-mode .skills-slide .skill-category {
    margin-bottom: 0;
}

.cv-wrapper.presentation-mode .skills-slide .skill-category-title {
    font-size: 0.76rem;
    color: var(--brand-purple);
    margin-bottom: 0.65rem;
    text-align: center;
}

.cv-wrapper.presentation-mode .skills-slide .skill-item {
    margin-bottom: 0.3rem;
}

.cv-wrapper.presentation-mode .skills-slide .skill-name {
    font-size: 0.6rem;
    font-weight: 500;
}

.cv-wrapper.presentation-mode .skills-slide .skill-bar {
    height: 5px;
    border-radius: 2.5px;
}

.cv-wrapper.presentation-mode .experience-scroll {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.cv-wrapper.presentation-mode .experience-scroll::-webkit-scrollbar {
    width: 6px;
}

.cv-wrapper.presentation-mode .experience-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.cv-wrapper.presentation-mode .experience-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-teal);
    border-radius: 3px;
}

.cv-wrapper.presentation-mode .cv-footer {
    margin-top: 3rem;
    background: transparent;
    border-top: none;
    padding: 1rem 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cv-header {
    background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 50%, var(--brand-purple-dark) 100%);
    color: white;
    padding: 2.5rem 3rem;
    position: relative;
}

.cv-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-teal), var(--brand-red));
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-image .avatar-placeholder {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-darker) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.profile-info h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.profile-info h2 {
    margin: 0.4rem 0;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--brand-teal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.profile-info .tagline {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 500px;
}

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.contact-item .icon {
    font-size: 1rem;
}

.contact-item a {
    color: var(--brand-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #ffffff;
}

.cv-section {
    margin-bottom: 2.5rem;
}

.cv-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-purple);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e8ecf1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--brand-red), var(--brand-teal));
    border-radius: 2px;
}

.section-icon {
    display: none;
}

.section-content {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.95rem;
}

.section-content p {
    margin: 0;
}

/* Experience Item Styles */
.experience-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #e8ecf1;
    position: relative;
    padding-left: 1rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
}

.experience-slide:last-child .experience-item{
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.experience-title {
    margin: 0;
    color: var(--brand-purple);
    font-size: 1.05rem;
    font-weight: 600;
}

.experience-company {
    color: var(--brand-teal-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.experience-period {
    color: #718096;
    font-size: 0.85rem;
    white-space: nowrap;
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.experience-description {
    margin: 0.5rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tech-tag {
    background: rgba(84, 185, 179, 0.15);
    color: var(--brand-teal-darker);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(84, 185, 179, 0.3);
}

/* Education Item Styles */
.education-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecf1;
    padding-left: 1rem;
    position: relative;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.education-degree {
    margin: 0;
    color: var(--brand-purple);
    font-size: 1.05rem;
    font-weight: 600;
}

.education-institution {
    color: var(--brand-teal-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.education-period {
    color: #718096;
    font-size: 0.85rem;
    white-space: nowrap;
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.education-details {
    margin: 0.5rem 0 0;
    color: #718096;
    font-size: 0.9rem;
}

/* Skills Section Styles */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

.skill-category-title {
    margin: 0 0 1rem 0;
    color: var(--brand-purple);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-name {
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.skill-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-teal-darker), var(--brand-teal));
    border-radius: 3px;
    transition: width 0.6s ease-out;
}

/* Certifications / Extra Activities */
.certifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certifications-list li {
    padding: 0.75rem 0 0.75rem 1rem;
    border-bottom: 1px solid #e8ecf1;
    position: relative;
    font-size: 0.95rem;
}

.certifications-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--brand-red);
    border-radius: 50%;
}

.certifications-list li:last-child {
    border-bottom: none;
}

.certifications-list li strong {
    color: var(--brand-purple);
}

/* Languages */
.languages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
    min-width: 140px;
}

.language-name {
    font-weight: 600;
    color: var(--brand-purple);
    font-size: 1rem;
}

.language-level {
    color: var(--brand-teal-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
.cv-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f2f5 100%);
    padding: 1.25rem 3rem;
    text-align: center;
    border-top: 1px solid #e8ecf1;
}

.cv-footer p {
    margin: 0.2rem 0;
    color: #718096;
    font-size: 0.85rem;
}

.cv-footer .copyright {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Download PDF Button */
.download-pdf-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(75, 17, 44, 0.3);
    transition: all 0.2s ease;
    z-index: 1000;
}

.download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(75, 17, 44, 0.4);
    background: linear-gradient(135deg, var(--brand-purple-light) 0%, var(--brand-purple) 100%);
}

.download-pdf-btn:active {
    transform: translateY(0);
}

.pdf-icon {
    font-size: 0.9rem;
}

.pdf-label {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mode-selector {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem;
    }
    
    .mode-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .mode-label {
        display: none;
    }
    
    .presentation-nav {
        right: 0.5rem;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .nav-dot {
        width: 8px;
        height: 8px;
    }
    
    .cv-wrapper.cv-mode {
        margin: 0;
        border-radius: 0;
    }
    
    .cv-wrapper.cv-mode .cv-section-full .section-inner {
        padding: 0 1.5rem;
    }
    
    .cv-header {
        padding: 2rem 1.5rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 1.75rem;
    }
    
    .profile-info .tagline {
        max-width: 100%;
    }
    
    .contact-quick {
        justify-content: center;
    }
    
    .experience-header,
    .education-header {
        flex-direction: column;
        gap: 0.35rem;
    }
    
    .experience-period,
    .education-period {
        align-self: flex-start;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .cv-footer {
        padding: 1rem 1.5rem;
    }
    
    .cv-wrapper.presentation-mode .section-inner {
        padding: 2rem 1.5rem;
    }
}

@media print {
    .mode-selector,
    .download-pdf-btn,
    .presentation-nav {
        display: none !important;
    }
    
    html, body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .cv-wrapper {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none !important;
        border: none;
        border-radius: 0;
    }
    
    .cv-wrapper.presentation-mode .cv-section-full {
        min-height: auto;
        page-break-inside: avoid;
    }

    .cv-section-full {
        height: auto !important;
        min-height: auto !important;
        page-break-inside: avoid;
    }

    .section-inner {
        padding: 1rem 1.5rem;
    }
    
    .cv-header {
        padding: 1.5rem;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .experience-carousel-wrapper,
    .skills-carousel-wrapper {
        display: block !important;
    }

    .experience-slide,
    .skills-slide {
        display: block !important;
        page-break-inside: avoid;
    }

    .carousel-btn,
    .carousel-dots {
        display: none !important;
    }
    
    .cv-section {
        break-inside: avoid;
    }
    
    .experience-item,
    .education-item {
        break-inside: avoid;
    }

    .cv-footer {
        display: none;
    }
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #0066cc;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #0066cc;
}
