/* Styles26.css - Consolidated responsive styles for PHC Port */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Container Styles */
.container,
.proposal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
    margin-bottom: 0;
    border-bottom: 3px solid #ddd;
    padding-bottom: 1.5rem;
}

header h1 {
    color: #1b4d89;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    line-height: 1.2;
}

header .subtitle {
    color: #666;
    margin: 0;
    font-size: 1.05rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    color: #1b4d89;
}

h3 {
    font-size: 1.25rem;
}

/* Logo Styling */
img {
    max-width: 150px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
}

/* Panels and Sections */
.panel,
.section {
    text-align: left;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f8f9fb;
    border-radius: 8px;
    border-left: 4px solid #0073b1;
}

.insert {
    background-color: #e8f4f8;
    padding: 1rem;
    border-left: 4px solid #0073b1;
    margin: 1rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 4px;
    line-height: 1.5;
}

/* Collapsible Sections */
.collapsible-title {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1b4d89;
    transition: color 0.3s ease;
}

.collapsible-title:hover {
    color: #0056b3;
}

.collapsible-title .indicator {
    display: inline-block;
    min-width: 30px;
    font-weight: bold;
    margin-right: 0.5rem;
}

.collapsible-content {
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 30px;
}

.collapsible-content.expanded {
    max-height: 10000px;
    transition: max-height 0.5s ease;
}

/* Form Elements */
form {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f0f5fa;
    border: 1px solid #ddd;
    border-radius: 8px;
}

label {
    font-weight: 600;
    display: block;
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

textarea {
    resize: vertical;
    min-height: 120px;
    overflow-y: hidden;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0073b1;
    background-color: #f8fbff;
    box-shadow: 0 0 0 3px rgba(0, 115, 177, 0.1);
}

/* Button Styles */
button,
.button {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0;
    cursor: pointer;
    background-color: #0073b1;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover,
.button:hover {
    background-color: #005582;
    box-shadow: 0 4px 8px rgba(0, 115, 177, 0.2);
}

button:active,
.button:active {
    transform: translateY(1px);
}

/* Contact Info Styles */
.contact-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #e8eef5;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid #0073b1;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a,
.social-links .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

/* Link Styles */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #004fa3;
    text-decoration: underline;
}

/* Edit UI */
.edit-ui {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.edit-ui button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #ffc107;
    color: #333;
}

.edit-ui button:hover {
    background-color: #e0a800;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.95rem;
    color: #777;
    text-align: center;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

th {
    background-color: #1b4d89;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f8f9fb;
}

/* Print Styles */
@media print {
    .edit-ui {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .container,
    .proposal-container {
        box-shadow: none;
        max-width: 100%;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
        padding: 0;
        margin: 0;
    }
    
    /* Site Header Responsive */
    .site-header-banner {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header-left,
    .header-middle,
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        min-width: auto;
        gap: 0.5rem;
    }
    
    .header-middle a {
        font-size: 0.75rem;
        margin: 0 2px;
    }
    
    .link-sep {
        margin: 0 2px;
        font-size: 0.75rem;
    }
    
    .user-info {
        font-size: 0.75rem;
        padding: 3px 6px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .logout-btn,
    .login-btn,
    .session-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .project-selector {
        gap: 4px;
    }
    
    .project-selector label {
        font-size: 0.8rem;
    }
    
    .project-selector select {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .container,
    .proposal-container {
        width: 100%;
        padding: 1rem;
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
    header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header .subtitle {
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .panel,
    .section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    form {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    label {
        margin: 0.75rem 0 0.5rem 0;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        padding: 0.7rem;
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }
    
    button,
    .button {
        width: 100%;
        padding: 0.7rem 1rem;
        margin: 0.75rem 0;
        display: block;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .collapsible-content {
        padding-left: 15px;
    }
    
    img {
        max-width: 120px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    td, th {
        padding: 0.6rem 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
        padding: 0;
        margin: 0;
    }
    
    /* Site Header Extra Compact */
    .site-header-banner {
        flex-direction: column;
        padding: 0.5rem;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header-left,
    .header-middle,
    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        min-width: auto;
        gap: 0.3rem;
    }
    
    .header-middle a {
        font-size: 0.65rem;
        margin: 0 1px;
    }
    
    .link-sep {
        margin: 0 1px;
        font-size: 0.65rem;
        display: none;
    }
    
    .link-sep:first-of-type {
        display: inline;
    }
    
    .user-info {
        font-size: 0.65rem;
        padding: 2px 4px;
        flex-wrap: wrap;
        gap: 3px;
        border: none;
        background: transparent;
    }
    
    .logout-btn,
    .login-btn,
    .session-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .project-selector {
        gap: 3px;
        width: 100%;
    }
    
    .project-selector label {
        font-size: 0.7rem;
    }
    
    .project-selector select {
        font-size: 0.65rem;
        padding: 3px 4px;
    }
    
    .container,
    .proposal-container {
        width: 100%;
        padding: 0.75rem;
        margin: 0;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    header .subtitle {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }
    
    .panel,
    .section {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    .collapsible-title {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .collapsible-title .indicator {
        min-width: 25px;
        margin-right: 0.25rem;
    }
    
    form {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        padding: 0.65rem;
        margin-bottom: 0.6rem;
        font-size: 1rem;
    }
    
    button,
    .button {
        padding: 0.65rem 0.75rem;
        font-size: 0.95rem;
        margin: 0.65rem 0;
        display: block;
        width: 100%;
    }
    
    .social-links {
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .social-links a,
    .social-links .button {
        flex: 1;
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
    
    table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }
    
    td, th {
        padding: 0.5rem 0.25rem;
    }
}
