﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;500;700&display=swap');

:root {
    --primary-color: #015c9a;
    --primary-hover: #014372;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --border-color: #e1e4e8;
    --sidebar-width: 250px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.logo-container {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.logo {
    max-width: 150px;
}

.sidebar nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar nav a {
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover {
    background-color: #f0f4f8;
    color: var(--primary-color);
}

.sidebar nav a.active {
    background-color: #e6f0f9;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    color: var(--text-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(1, 92, 154, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(1, 92, 154, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* Cards & Containers */
.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Tables */
.table-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.proposal-table {
    width: 100%;
    border-collapse: collapse;
}

.proposal-table th, .proposal-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.proposal-table th {
    background-color: #f8f9fa;
    color: var(--text-light);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proposal-table tr:hover td {
    background-color: #fcfcfc;
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

.form-group input, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(1, 92, 154, 0.1);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

/* Print specific styles for Detail View */
@media print {
    .sidebar, header { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    .document-container { box-shadow: none; border: none; }
}

/* Generated Document Styles inside detail.html */
.doc-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
}
.doc-section {
    margin-bottom: 25px;
}
.doc-title {
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.doc-summary {
    background-color: #f4f8fb;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

/* Premium Header Styles */
.premium-header {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(1, 92, 154, 0.05);
}

.premium-header::after {
    content: "\25BC";
    position: absolute;
    right: -20px;
    top: -40px;
    font-size: 350px;
    font-weight: 800;
    color: rgba(1, 92, 154, 0.03);
    z-index: 0;
    line-height: 1;
}

.ph-content {
    position: relative;
    z-index: 1;
}

.ph-logo {
    max-height: 45px;
    margin-bottom: 25px;
}

.ph-tag {
    display: inline-block;
    background-color: #fbf0d8;
    color: #b58d3d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ph-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ph-subtitle {
    font-size: 18px;
    color: #697386;
    font-weight: 400;
    margin-bottom: 30px;
}

.ph-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 14px;
    color: #8792a2;
}
.ph-meta span {
    display: flex;
    align-items: center;
}
.ph-meta strong {
    color: #3c4257;
    margin-right: 5px;
}

/* Expandable Accordion Sections */
.proposal-section {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.proposal-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.proposal-section summary {
    list-style: none; /* Hide default triangle */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fcfdfe;
    user-select: none;
    transition: background-color 0.2s;
}

.proposal-section summary::-webkit-details-marker {
    display: none; /* Hide for Safari */
}

.proposal-section summary:hover {
    background-color: #f4f8fb;
}

.proposal-section summary h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.proposal-section summary h2::before {
    content: "";
    display: block;
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary-color), #00b4d8);
    border-radius: 4px;
}

/* Arrow icon */
.proposal-section summary::after {
    content: "\25BC";
    font-size: 14px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.proposal-section[open] summary {
    border-bottom: 1px solid #e1e8ed;
    background-color: #ffffff;
}

.proposal-section[open] summary::after {
    transform: rotate(180deg);
}

.section-content {
    padding: 25px;
    animation: fadeIn 0.4s ease-in-out;
}

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

/* Print Rules - Force all details to be open and visible when printing */
@media print {
    .proposal-section {
        box-shadow: none !important;
        border: none !important;
        margin-bottom: 30px !important;
    }
    
    .proposal-section summary {
        border-bottom: 2px solid var(--primary-color) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .proposal-section summary::after {
    content: "\25BC";
    }

    .proposal-section > .section-content {
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure closed details also display their content */
    .proposal-section:not([open]) > .section-content {
        display: block !important; 
    }
}

/* Soltevic Executive Ribbon */
.soltevic-ribbon {
    display: flex;
    background: linear-gradient(135deg, var(--primary-color) 0%, #01375c 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(1, 92, 154, 0.2);
    margin-top: 15px;
}

.ribbon-block {
    flex: 1;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
    color: #ffffff;
}

.ribbon-block:last-child {
    border-right: none;
}

.ribbon-block:hover {
    background: rgba(255, 255, 255, 0.05);
}

.r-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.r-value {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 5px;
    line-height: 1.1;
}

.r-sub {
    font-size: 12px;
    color: #90b4ce;
}

/* Ribbon Responsive */
@media (max-width: 900px) {
    .soltevic-ribbon {
        flex-direction: column;
    }
    .ribbon-block {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .ribbon-block:last-child {
        border-bottom: none;
    }
}

/* Split Layout for Info Section */
.info-split {
    display: flex;
    gap: 40px;
    align-items: center;
}

.info-text {
    flex: 1;
}

.info-text ul {
    list-style: none;
    padding: 0;
}

.info-text li {
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
}

.info-text li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 16px;
    color: #ffffff;
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-img {
    flex: 1;
    text-align: center;
}

.info-img img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .info-split {
        flex-direction: column;
    }
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.module-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(1, 92, 154, 0.1);
    border-color: rgba(1, 92, 154, 0.3);
}

.module-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    background: linear-gradient(135deg, #f0f7fc 0%, #e1eff8 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #01375c 100%);
    color: #ffffff;
}

.module-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
}
/* Timeline Styling */
.timeline-container {
    position: relative;
    padding: 30px 0;
    margin-bottom: 20px;
    overflow-x: auto;
}
.tl-line {
    position: absolute;
    top: 55px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e1e8ed;
    z-index: 1;
}
.tl-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-width: 600px;
}
.tl-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    text-align: center;
}
.tl-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid #fff;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 0 0 3px rgba(1, 92, 154, 0.2);
    transition: transform 0.3s ease;
}
.tl-node:hover .tl-dot {
    transform: scale(1.2);
}
.tl-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
}
.tl-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
}
.timeline-details ul {
    background: #f8faff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px 25px 25px 45px;
    list-style: none;
}
.timeline-details li {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}
.timeline-details li:last-child {
    margin-bottom: 0;
}
.timeline-details li::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: -15px;
    top: 8px;
}

/* Payment Milestones */
.payment-summary {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}
.ps-label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
}
.ps-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1f36;
    font-family: 'Outfit', sans-serif;
}

.payment-milestones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.milestone-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 15px 20px;
    gap: 20px;
    transition: all 0.2s;
}
.milestone-card:hover {
    border-color: rgba(1, 92, 154, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.m-perc-box {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px 15px;
    width: 80px;
    text-align: center;
}
.m-perc {
    font-size: 16px;
    font-weight: 600;
    color: #1a1f36;
}
.m-perc-sym {
    color: #8792a2;
    font-size: 14px;
}
.m-desc {
    flex: 1;
    font-size: 15px;
    color: var(--text-color);
}
.m-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}
@media (max-width: 600px) {
    .milestone-card { flex-direction: column; align-items: flex-start; }
}
/* Pillars Styling */
.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.pillar-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.pillar-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    background: linear-gradient(135deg, #f0f7fc 0%, #e1eff8 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.pillar-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.pillar-card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}


