/**
 * Accionista Portal Styles
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'PT Serif';
    src: url('/wp-content/themes/compsaonline/assets/fonts/PT_Serif/PTSerif-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/wp-content/themes/compsaonline/assets/fonts/Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

h1 {
    font-family: 'PT Serif', serif !important;
    font-size: 45px;
}
h2 {
    font-family: 'PT Serif', serif !important;
    font-size: 32px;
}
h3 {
    font-family: 'PT Serif', serif !important;
    font-size: 24px;
    font-weight: bold;
}
h4 {
    font-family: 'Raleway' !important;
    font-size: 20px;
    font-weight: bold;
}
p {
    font-family: 'Raleway', sans-serif !important;
    font-size: 20px;
}



.portal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.portal-logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Header Styles */
.portal-header {
    border-bottom: 1px solid #D9D9D9;
    padding: 0;
    margin-bottom: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.portal-logo h2 {
    font-family: 'PT Serif', serif;
    font-size: 26px;
    font-weight: 400;
    color: #2D3A3A;
    margin: 0;
    letter-spacing: 0.5px;
}

.portal-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 16px;
    padding: 0 0 8px 0;
    background: none;
    border: none;
    outline: none;
    position: relative;
    transition: color 0.2s;
    display: inline-block;
}

.nav-link.active,
.nav-link:focus,
.nav-link:hover {
    color: #0A27C4;
}

.nav-link.active::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -15px; /* Place exactly at the bottom border of .portal-header */
    margin: 0 auto;
    width: 100%;
    height: 3px;
    background: #0A27C4;
    border-radius: 2px;
    z-index: 2;
    /* Remove margin-top and width: 80% to avoid shifting */
}

.nav-link.logout {
    color: #b91c1c;
    font-weight: 400;
}

.nav-link.logout:hover {
    color: #dc2626;
}

/* Main Content */
.portal-main {
    flex: 1;
    padding: 32px 0;
    min-height: calc(100vh - 180px);
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 48px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.action-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archive-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.profile-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.action-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.action-content p {
    font-size: 14px;
    color: #64748b;
}


.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.section-header p {
    color: #64748b;
    font-size: 14px;
}

/* Meetings List */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meeting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.meeting-item:hover {
    border-color: #e2e8f0;
}

.meeting-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.meeting-date {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.meeting-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meeting-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        flex-direction: column;
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 16px;
    }

    .nav-menu {
        gap: 20px;
    }

    .portal-container {
        padding: 0;
    }

    .welcome-title {
        font-size: 24px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .meeting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .meeting-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .action-card {
        padding: 20px;
    }

    .welcome-section {
        text-align: center;
    }
}

.content-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}