/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container h2 {
    color: white;
    font-size: 1.5rem;
}

/* Logo and Brand Section */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-text h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.brand-text p {
    color: #ecf0f1;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
    color: #3498db;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: white;
}

.content-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.content-section p {
    color: #666;
    margin-bottom: 1rem;
}

.values-section {
    margin-top: 3rem;
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s;
}

/* Login Section */
.login-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

.form-group.focused label {
    color: #3498db;
}

/* Error Messages */
.error-message {
    background-color: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #c33;
}

/* Login Links */
.login-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Dashboard */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

.stats-section {
    padding: 2rem 0;
    background-color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-value.positive {
    color: #27ae60;
}

.stat-value.negative {
    color: #e74c3c;
}

/* Holdings Section */
.holdings-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.holdings-section h2 {
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background-color: #2c3e50;
    color: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tbody tr:hover {
    background-color: #e9ecef;
}

.data-table .positive {
    color: #27ae60;
    font-weight: bold;
}

.data-table .negative {
    color: #e74c3c;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .logo-img {
        height: 40px;
    }

    .brand-text h2 {
        font-size: 1.25rem;
    }

    .brand-text p {
        font-size: 0.75rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.lang-switcher a {
    display: inline-block;
    padding: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.lang-switcher a:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.flag-icon {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: block;
    transition: box-shadow 0.2s ease;
}

.lang-switcher a:hover .flag-icon {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness for language switcher */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .flag-icon {
        width: 24px;
        height: 17px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 2rem;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Press Release Styles (based on pdf_compact.css) */
.press-release {
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 10pt;
    line-height: 1.5;
}

.press-release h1 {
    font-size: 18pt;
    margin-top: 0.5em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.press-release h2 {
    font-size: 13pt;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.press-release h3 {
    font-size: 11pt;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    font-weight: bold;
}

.press-release p {
    margin-top: 0.4em;
    margin-bottom: 0.5em;
    text-align: justify;
}

.press-release ul,
.press-release ol {
    margin-top: 0.5em;
    margin-bottom: 0.6em;
    padding-left: 1.5em;
}

.press-release li {
    margin-bottom: 0.3em;
    line-height: 1.4;
}

.press-release hr {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    border: none;
    border-top: 1.5px solid #ccc;
}

.press-release strong {
    font-weight: bold;
}

.press-release em {
    font-style: italic;
}

.press-release a {
    color: #3498db;
    text-decoration: none;
}

.press-release a:hover {
    text-decoration: underline;
}

.press-release-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.press-release-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .press-release {
        font-size: 9pt;
    }

    .press-release h1 {
        font-size: 16pt;
    }

    .press-release h2 {
        font-size: 12pt;
    }
}
