﻿:root {
    --primary: #016B4F;
    --primary-light: #e8f2ff;
    --primary-dark: #014d38;
    --secondary: #6c757d;
    --success: #00d97e;
    --info: #39afd1;
    --warning: #f6c343;
    --danger: #e63757;
    --dark: #12263f;
    --light: #f9fbfd;
    --border: #e3ebf6;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f8fa;
    color: var(--dark);
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.app-header {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    flex-shrink: 0;
}

    .logo-container svg {
        width: 80px;
        height: 80px;
    }

.header-text {
    flex-grow: 1;
}

.app-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-description {
    color: var(--secondary);
    max-width: 800px;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

    .card-header .nav-tabs {
        border-bottom: none;
    }

    .card-header .nav-link {
        color: var(--secondary);
        border: none;
        padding: 0.5rem 1rem;
        font-weight: 500;
    }

        .card-header .nav-link.active {
            color: var(--primary);
            background-color: transparent;
            border-bottom: 2px solid var(--primary);
        }

.card-body {
    padding: 1.5rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
    height: 100%;
    position: relative;
}

    .download-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
        border-color: var(--primary);
    }

    .download-btn.active {
        background-color: rgba(1, 107, 79, 0.05);
        border-color: var(--primary);
        color: var(--primary);
    }

.download-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.download-btn.active .download-icon {
    color: var(--primary);
}

.download-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.download-desc {
    font-size: 0.85rem;
    color: var(--secondary);
}

.secondary-download {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: underline;
}

.file-preview {
    display: none;
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: white;
}

    .file-preview.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.preview-title {
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.preview-content {
    max-height: 300px;
    overflow-y: auto;
}

    .preview-content pre {
        margin: 0;
        font-family: 'Courier New', monospace;
        font-size: 0.85rem;
        white-space: pre-wrap;
    }

.metadata-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

    .metadata-btn:hover {
        background-color: var(--primary-dark);
        color: white;
    }

    .metadata-btn i {
        margin-right: 0.5rem;
    }

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(1, 107, 79, 0.25);
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.xml-container {
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 500px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-loading {
    background-color: rgba(57, 175, 209, 0.1);
    color: var(--info);
}

.status-success {
    background-color: rgba(0, 217, 126, 0.1);
    color: var(--success);
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border-width: 0.15em;
}

.xml-download {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

    .xml-download:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    .xml-download i {
        margin-right: 0.5rem;
    }

#no-data-message {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .app-header, .card {
        padding: 1.5rem;
    }
}



.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    flex-shrink: 0;
}

.app-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.app-description {
    color: #666;
    margin-bottom: 0;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0 !important;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

    .nav-tabs .nav-link:hover {
        color: var(--primary-color);
    }

    .nav-tabs .nav-link.active {
        color: var(--primary-color);
        background-color: transparent;
        border-bottom: 3px solid var(--primary-color);
    }

.card-body {
    padding: 25px;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .download-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .download-btn.active {
        border-color: var(--primary-color);
        background-color: rgba(1, 107, 79, 0.05);
    }

    .download-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(1, 107, 79, 0.1), transparent);
        transition: 0.5s;
    }

    .download-btn:hover::before {
        left: 100%;
    }

.download-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.download-btn:hover .download-icon {
    transform: scale(1.1);
    color: var(--primary-color);
}

.download-label {
    font-weight: 600;
    margin-bottom: 5px;
}

.download-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.secondary-download {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .secondary-download:hover {
        text-decoration: underline;
    }

.metadata-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

    .metadata-btn:hover {
        background-color: #015a43;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(1, 107, 79, 0.3);
    }

    .metadata-btn i {
        margin-right: 8px;
    }

.file-preview {
    display: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

    .file-preview.active {
        display: block;
    }

.preview-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
}

.preview-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.preview-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

    .preview-content pre {
        margin: 0;
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.9rem;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

.fetch-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .fetch-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .fetch-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .fetch-btn:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

    .status-badge span:first-child {
        margin-right: 8px;
    }

.status-loading span:last-child {
    color: #666;
}

.xml-download {
    color: var(--primary-color);
    transition: all 0.2s ease;
}

    .xml-download:hover {
        text-decoration: underline;
    }

.xml-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    max-height: 500px;
    overflow-y: auto;
}

#no-data-message {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }

    20% {
        transform: scale(25, 25);
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

.login-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    max-width: 100%;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left-content {
    max-width: 500px;
    z-index: 2;
}

.login-left h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.login-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    transform: rotate(15deg);
    animation: moveBackground 100s linear infinite;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    }

.login-logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .login-logo img {
        height: 150px;
        width: 150px;
    }

    .login-logo h2 {
        color: var(--primary);
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .login-logo p {
        color: var(--secondary);
        font-size: 0.95rem;
    }

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}
    
.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}
    
.login-form .form-control {
    width: 93%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9fbfd;
}

    .login-form .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(1, 107, 79, 0.15);
        background-color: white;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: var(--primary);
    }

.btn-login {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(1, 107, 79, 0.15);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 14px rgba(1, 107, 79, 0.2);
    }

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary);
}

    .login-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .login-footer a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-password:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--secondary);
    font-size: 0.85rem;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--border);
    }

    .login-divider::before {
        margin-right: 1rem;
    }

    .login-divider::after {
        margin-left: 1rem;
    }

.social-login {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .social-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .social-btn i {
        margin-right: 0.5rem;
        font-size: 1.1rem;
    }

/* Animations */
@@keyframes moveBackground {
    0% {
        transform: rotate(15deg) translate(0, 0);
    }

    100% {
        transform: rotate(15deg) translate(-100px, 100px);
    }
}

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .login-right {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .social-login {
        flex-direction: column;
    }
}

.metadata-btn {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}


.metadata-btn {
    background-color: darkgreen;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .metadata-btn:hover {
        background-color: green;
        transform: translateY(-2px);
    }