/* Reusable Components (Logo, Buttons, Flash Messages, etc.) */

/* Content protection styles */
.no-select-protected {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Fixed background for ALL pages with background images */
.section[data-bg-image] {
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    min-height: 100vh !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Large screens - image on left, fully visible */
@media (min-width: 1200px) {
    #psychoanatomy-dictionary.auth-section {
        background-position: left center !important;
        background-size: contain !important;
    }
}

/* Medium and small screens - centered and cover */
@media (max-width: 1199.98px) {
    #psychoanatomy-dictionary.auth-section {
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* Logo styles */
.logo-body-language {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

/* Fix h1 font-size in semantic HTML5 contexts */
h1.sitename {
    font-size: 2rem !important;
}

/* Fix h1 font-size for hero section */
.hero h1 {
    font-size: 3rem !important;
}

/* Fix all h1 elements in semantic contexts */
section h1, article h1, aside h1, nav h1 {
    font-size: 2rem !important;
}

/* Fix hero button sizes to be equal */
.hero .cta-buttons .btn-primary,
.hero .cta-buttons .btn-secondary {
    width: 170px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.logo-body-language-footer {
    height: 30px;
    width: 30px;
    margin-right: 10px;
}

/* Main logo styles (larger) */
.logo-body-language-main {
    height: 50px;
    width: 50px;
    margin-right: 15px;
}

.logo-body-language-footer-main {
    height: 35px;
    width: 35px;
    margin-right: 10px;
}

/* SVG Logo responsive sizing */
.logo img[src$=".svg"] {
    transition: all 0.3s ease;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo-body-language {
        height: 35px;
        width: 35px;
    }
    
    .logo-body-language-footer {
        height: 25px;
        width: 25px;
    }
    
    .logo-body-language-main {
        height: 45px;
        width: 45px;
        margin-right: 12px;
    }
    
    .logo-body-language-footer-main {
        height: 30px;
        width: 30px;
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    .logo-body-language {
        height: 30px;
        width: 30px;
    }
    
    .logo-body-language-footer {
        height: 20px;
        width: 20px;
    }
    
    .logo-body-language-main {
        height: 40px;
        width: 40px;
        margin-right: 10px;
    }
    
    .logo-body-language-footer-main {
        height: 25px;
        width: 25px;
        margin-right: 6px;
    }
}

/* MADJI logo size fix */
.logo-mini {
    max-height: 60px;
    width: auto;
}

/* Contact offset fix */
.contact-item-offset {
    margin-left: -10px !important;
}

/* Inbox Messages Table Styling */
.auth-section .card {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.auth-section .table {
    background: transparent !important;
}

.auth-section .table thead th {
    background: rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.auth-section .table tbody td {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.auth-section .table-warning td {
    background: rgba(255, 193, 7, 0.2) !important;
}

.message-preview {
    max-width: 300px;
}


/* Fix button colors to use accent color */
.btn-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.btn-outline-primary {
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* CTA Buttons styling */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mobile responsive - stack buttons vertically on small screens */
@media (max-width: 575.98px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
}

/* Transparent card for posture sections */
.auth-section .card {
    background-color: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.auth-section .card-body {
    background-color: transparent !important;
}

/* Pagination styling */
.pagination {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination .page-link {
    color: var(--accent-color) !important;
    border: 1px solid rgba(8, 145, 94, 0.3);
    margin: 0 2px;
    border-radius: 5px;
}

.pagination .page-link:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Posture images styling */
.current-posture-image {
    max-height: 300px;
    object-fit: contain;
}

.posture-grid-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
}

.mobile-posture-image {
    max-height: 300px;
    object-fit: contain;
}

.large-icon {
    font-size: 3rem;
}

/* Flash Messages - Global for all pages */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 25px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}