﻿/* ===================================
   Inneklimachat Custom Styles
   =================================== */

/* PDF Links */
.pdf-links-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.pdf-link {
    color: #1976d2;
    text-decoration: underline;
    font-size: 0.85rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

    .pdf-link:hover {
        color: #1565c0;
        text-decoration: underline;
    }

/* Feedback Components */
.feedback-message {
    color: #4caf50;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f1f8f4;
    border-radius: 6px;
    display: inline-block;
}

.feedback-btn {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
    min-height: 28px !important;
    height: 28px !important;
    text-transform: none !important;
    transition: all 0.2s ease-in-out !important;
}

    .feedback-btn .mud-button-label {
        font-size: 0.75rem !important;
    }

    .feedback-btn .mud-icon-root {
        font-size: 1rem !important;
    }

/* MudBlazor Overrides */
.mud-button-sm {
    font-size: 0.8rem;
    padding: 4px 12px;
    min-width: unset;
    height: 32px;
}

/* Responsive Visibility */
.mobile-only {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex !important;
    }
}

/* Custom Dropdown */
.custom-dropdown {
    max-width: 350px;
    width: 100%;
    margin: 0 auto 24px auto;
    padding: 10px 40px 10px 16px;
    font-size: 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg width='16' height='16' fill='gray' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='gray' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 12px center/20px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .custom-dropdown:focus {
        border-color: #ff9800;
        box-shadow: 0 0 0 2px #ffe0b2;
        outline: none;
    }

    .custom-dropdown option {
        font-size: 1rem;
        color: #333;
    }

/* Card Customizations */
.custom-card-actions {
    padding: 2px !important;
}

.rounded-card {
    border-radius: 16px;
    position: relative;
}

.card-actions {
    position: absolute;
    right: 16px;
    margin-top: 16px;
}

/* Typography */
.large-font {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

@media (max-width: 767.98px) {
    .large-font {
        font-size: 1.5rem;
    }
}

.medium-font {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.small-font {
    font-size: 0.7rem;
    margin-bottom: 20px;
}

.small-label {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Utility Classes */
.underline-link {
    text-decoration: underline;
}

.gray-text {
    color: darkgray;
}

.hover-pointer {
    cursor: pointer;
}

.full-area {
    width: 100%;
}

.radio-spacing {
    margin-right: 20px;
}

/* Layout Components */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding-bottom: 50px;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.card-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
}

.small-card {
    width: 30%;
}

/* Chat Components */
.stream-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.user-input {
    align-self: flex-end;
    text-align: right;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 1.0rem;
}

.response {
    align-self: flex-start;
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.0rem;
}

    .response h3 {
        margin: 0;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

/* Footer */
.footer-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 48rem;
}

/* ===================================
   HomeHeader Logo Styles
   =================================== */

.logo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.logo-right-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.logo-main {
    width: 170px;
    height: 70px;
    margin-bottom: 20px;
}

.logo-nilu {
    width: 40px;
    height: 20px;
    margin-bottom: 20px;
}

.logo-naaf {
    width: 75px;
    height: 25px;
    margin-bottom: 20px;
}

.logo-ntnu {
    width: 75px;
    height: 15px;
    margin-bottom: 20px;
}

/* Mobile styles for logos - Notice: single @ not @@ */
@media (max-width: 767.98px) {
    .logo-row {
        padding-left: 8px;
        padding-right: 8px;
    }

    .logo-main {
        width: 100px;
        height: 40px;
    }

    .logo-nilu {
        width: 24px;
        height: 12px;
    }

    .logo-naaf {
        width: 40px;
        height: 14px;
    }

    .logo-ntnu {
        width: 40px;
        height: 8px;
    }
}