/* Portal Redesign Styles matching the screenshot exactly */
:root {
    --portal-teal: #00a896;
    --portal-teal-dark: #028090;
    --portal-cyan-light: #e0f2fe;
    --portal-active-teal: #00b4d8;
    --portal-bg: #f8fafc;
    --portal-border: #e2e8f0;
    --portal-text-dark: #1e293b;
    --portal-text-gray: #64748b;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--portal-bg);
    color: var(--portal-text-dark);
}

/* Header Styling */
.portal-header {
    background-color: #ffffff;
    height: 65px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--portal-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.portal-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}

.portal-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0096c7;
    font-style: normal;
    letter-spacing: -0.5px;
}

.portal-logo-text span {
    color: #00a896;
}

.portal-subtitle {
    font-size: 0.55rem;
    font-weight: 700;
    color: #0096c7;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hamburger-btn {
    font-size: 1.4rem;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
}

/* Bank Selection Pill styled exactly like the screenshot */
.bank-selector-pill {
    background-color: #ffffff;
    border: 1.5px solid #00b4d8;
    border-radius: 50px;
    padding: 6px 20px;
    color: #0096c7;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bank-selector-pill:hover {
    background-color: #f0f9ff;
    color: #0077b6;
}

.bank-selector-pill .bi-bank {
    font-size: 1rem;
}

.profile-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #cbd5e1;
    color: #334155;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Main Layout Wrapper */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 65px; /* offset header height */
}

/* Sidebar Styling */
.portal-sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid var(--portal-border);
    position: fixed;
    top: 65px;
    bottom: 0;
    left: 0;
    z-index: 1020;
    overflow-y: auto;
    padding: 20px 12px;
    transition: all 0.3s ease;
}

.portal-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-nav-item {
    width: 100%;
}

.portal-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #475569;
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.portal-nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.portal-nav-link.active {
    background-color: var(--portal-active-teal);
    color: #ffffff !important;
    font-weight: 600;
}

.portal-nav-link.active i {
    color: #ffffff !important;
}

.portal-nav-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #64748b;
}

/* Collapsible Category Header styled as a light blue pill pill */
.category-header-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background-color: var(--portal-cyan-light);
    color: #028090;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
    margin-bottom: 4px;
}

.category-header-btn:hover {
    background-color: #d0e7ff;
}

.category-header-btn i {
    color: #028090;
}

.submenu-nav {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 4px 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.submenu-nav .portal-nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Main Content Area styling */
.portal-main-content {
    flex: 1;
    margin-left: 250px;
    padding: 40px;
    background-color: var(--portal-bg);
    min-height: calc(100vh - 65px);
}

/* Custom Card Layout exactly like the screenshot */
.portal-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 40px;
    border: 1px solid var(--portal-border);
    margin-top: 20px;
}

.portal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.portal-card-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

/* Green circular download icon + underline style matching screenshot */
.download-sample-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #008080 !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: underline;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1.2;
}

.download-sample-btn:hover {
    color: #006666 !important;
}

.download-icon-circle {
    width: 28px;
    height: 28px;
    background-color: #008080;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
}

/* Form Sizing and Row Styling */
.form-horizontal-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.form-label-small {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.form-select-custom {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #334155;
    background-color: #ffffff;
    height: 45px;
    width: 100%;
}

.form-select-custom:focus {
    border-color: var(--portal-active-teal);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
    outline: none;
}

/* Custom File Input Group */
.file-upload-group {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    height: 45px;
    background-color: #ffffff;
    width: 100%;
}

.file-upload-group:focus-within {
    border-color: var(--portal-active-teal);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.file-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #64748b;
    font-size: 1.1rem;
}

.file-upload-text {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #64748b;
    background: transparent;
    cursor: pointer;
}

.file-upload-text:focus {
    outline: none;
}

.btn-browse-custom {
    background-color: #ffffff;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    border-left: 1px solid #cbd5e1;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-browse-custom:hover {
    background-color: #f8fafc;
}

/* Upload Action Button styled exactly as cyan light-blue */
.btn-upload-action {
    background-color: #9bf0f6; /* soft cyan matching screenshot exactly */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    height: 45px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

/* Active upload button hover */
.btn-upload-action:hover {
    background-color: #00b4d8;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.2);
}

/* Responsive sidebar collapsibility */
@media (max-width: 992px) {
    .portal-sidebar {
        left: -250px;
    }
    .portal-sidebar.show {
        left: 0;
    }
    .portal-main-content {
        margin-left: 0;
        padding: 20px;
    }
}

.functional-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.functional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: #00b4d8 !important;
}
