/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2e272b;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Header Section */
h1 {
    background: linear-gradient(135deg, #192179 0%, #3b4f9a 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

h1::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Content Area */
.content-area {
    padding: 2rem;
}

/* Standard Card Styles */
.standar {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(25, 33, 121, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.standar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #192179 0%, #3b4f9a 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.standar:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.standar:hover::before {
    transform: scaleY(1);
}

/* Toggle Button Styles */
.toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    user-select: none;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    transition: all 0.3s ease;
    position: relative;
    color: #192179;
}

.toggle:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    color: #3b4f9a;
}

.toggle:active {
    transform: scale(0.98);
}

/* Arrow Styles */
.arrow {
    margin-right: 1rem;
    font-size: 1rem;
    color: #192179;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #192179 0%, #3b4f9a 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
}

.arrow.open {
    transform: rotate(90deg);
    background: linear-gradient(135deg, #3b4f9a 0%, #5c7cfa 100%);
}

/* Documents Container */
.docs {
    margin: 0;
    padding: 0 2rem 2rem 2rem;
    display: none;
    background: linear-gradient(135deg, #fafbff 0%, #f0f4f8 100%);
    border-top: 1px solid rgba(25, 33, 121, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Document Link Styles */
.docs a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: white;
    color: #2e272b;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.docs a::before {
    content: "📄";
    margin-right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.docs a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(25, 33, 121, 0.05), transparent);
    transition: left 0.5s ease;
}

.docs a:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #192179;
    border-color: rgba(25, 33, 121, 0.2);
}

.docs a:hover::after {
    left: 100%;
}

.docs a:active {
    transform: translateX(3px) scale(0.98);
}

/* Add a subtle pattern to the background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(25, 33, 121, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 79, 154, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }

    .container {
        border-radius: 15px;
    }

    h1 {
        font-size: 2rem;
        padding: 2rem 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .toggle {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }

    .docs {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .docs a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .docs a::before {
        font-size: 1rem;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 5px;
    }

    h1 {
        font-size: 1.75rem;
        padding: 1.5rem 1rem;
    }

    .toggle {
        padding: 1rem;
        font-size: 1rem;
    }

    .docs {
        padding: 0 1rem 1rem 1rem;
    }

    .docs a {
        padding: 0.7rem 0.8rem;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .arrow {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 0.75rem;
    }
}

/* Loading animation for smooth transitions */
.standar {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced focus states for accessibility */
.toggle:focus {
    outline: 2px solid #192179;
    outline-offset: 2px;
}

.docs a:focus {
    outline: 2px solid #192179;
    outline-offset: 2px;
}
