/* #region General Site CSS Stuff */

/* Necessary to ensure footer stays at bottom */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Make the main content area grow to fill available space */
#MainContainer {
    flex: 1 0 auto;
}

/* Ensure the footer stays at bottom */
#footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0px;
    position: inherit;
}

header {
    position: relative;
    top: 0;
    width: 100%;
}

html > body header {
    width: 100%;
}

.navbar-overhang {
    position: absolute;
    top: 14px;
    transform: translateY(-10%);
}
   
.siteNameBig, .siteNameSmall > a {
    padding-left: 120px;
}

/* Svg Container (put Svg files inside a #container for scaling */
svg, #container {
    height: 100%;
    width: 100%;
}

/* Svg Nav Bar Small Logo */
.logo {
    height: 72px;
}

/* SVG Nav Bar 'Name' Logo */
.nbLogo {
    height: 24px;
}

/* cloudlg */
.cloudlg {
    height:140px;
}

/* cloudbannersm */
.cloudbannersm {
    height: 30px;
}

/* cloudiconsm */
.cloudiconsm {
    height: 14px;
}

/* cloudsm */
.cloudsm {
    height: 30px;
}

/* Svg Footer Logo */
.footer-logo {
    height: 20px;
}

.footer-spacing {
    margin-bottom: 50px;
}

.fw-bold { 
    font-weight: 500;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .profile-info-compact td {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem !important;
    }

    .profile-info-compact .btn-sm {
        font-size: 0.65rem;
        padding: 0.1rem 0.2rem;
    }

    .profile-info-compact .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
    }
}

/* Compact Stats Styling for Stats page */
.stats-compact {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.stat-item {
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: white;
    border: 1px solid #333;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #333;
    margin-top: 0.25rem;
}

/* Mobile optimization for compact stats */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-item {
        padding: 0.375rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Share Icon Button Styling - Using Fish-Smart Brand Colors */
.share-icon-button {
    background: transparent;
    border: 2px solid #50B8D4; /* --text-eye-view */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #50B8D4; /* --text-eye-view */
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.share-icon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #50B8D4 0%, #AAD0F8 50%, #94C8FF 100%); /* Using navbar-footer-bg and card-footer-bg */
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.share-icon-button:hover::before {
    opacity: 1;
    transform: scale(1);
}

.share-icon-button:hover {
    color: #FFFFFF; /* --text-white */
    border-color: #AAD0F8; /* --navbar-footer-bg */
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(80, 184, 212, 0.4); /* 50B8D4 with opacity */
}

.share-icon-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(80, 184, 212, 0.3); /* 50B8D4 with opacity */
}

.share-icon-button:active {
    transform: scale(0.95);
}
.spin {
    animation: spin 1s linear infinite;
}

/* Keyframe animation for spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.text-muted {
    color: white;
}

/* No Radius Right or Left */
.no-right-radius {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.no-left-radius {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* List Word Break */
@media (max-width: 767.98px) {
    .list-group-item span.flex-grow-1 {
        word-break: break-word;
    }
}

/* make everything a borderbox */
* {
    box-sizing: border-box;
}

/* General input and select focus styles */
page-item:focus,
page-link:focus,
input:focus,
select:focus,
textarea:focus,
.form-control:focus, /* Targets standard Bootstrap form controls */
.custom-select:focus /* Targets Bootstrap custom select elements */ {
    outline: none !important;
    box-shadow: none !important;
    border-color: initial !important; /* Resets the border color to its default state, removing any blue tint */
    background-color: initial !important;
}

/* Adjust form styling within nav-item to prevent misalignment */
.navbar-nav .nav-item form.form-inline {
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
    display: block; /* Forms are block by default, but confirm */
    /* You might need vertical-align depending on specific issue */
    vertical-align: middle;
}

    /* Further adjustments to the button within the form if needed */
    .navbar-nav .nav-item form.form-inline .btn.nav-link {
        /* Ensure no extra margin/padding on the button itself that deviates from regular nav-links */
        padding-top: .3rem; /* Match Bootstrap's default nav-link padding */
        padding-bottom: .9rem; /* Match Bootstrap's default nav-link padding */
        /* Check horizontal padding too if needed */
    }

#pdf-viewer-container {
    width: 100%; /* Use 100% width */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Set Image pointer and border transition */
img {
    cursor: pointer;
    transition: border 0.3s ease-in-out;
}

/* ImageViewer Mobile Responsiveness - Only target ImageViewer pages */
@media (max-width: 768px) {
    .image-viewer-container {
        height: calc(100vh - 12rem) !important;
    }
    
    .image-viewer-container .position-relative {
        height: calc(100vh - 25rem) !important;
    }
    
    .image-viewer-container .img-fluid {
        max-height: calc(100vh - 350px) !important;
    }
    
    /* Ensure buttons don't overlap on mobile */
    .image-viewer-container .container-fluid {
        padding-bottom: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .image-viewer-container {
        height: calc(100vh - 15rem) !important;
    }
    
    .image-viewer-container .position-relative {
        height: calc(100vh - 28rem) !important;
    }
    
    .image-viewer-container .img-fluid {
        max-height: calc(100vh - 400px) !important;
    }
    
    /* Extra bottom padding for small mobile */
    .image-viewer-container .container-fluid {
        padding-bottom: 1.5rem;
    }
}

/* #endregion General Site CSS Stuff */

/* #region Mikish Group Information Page */

/* Hero Section */
.mikish-hero-section {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #343a40 100%);
    color: white;
    padding: 80px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.mikish-logo-container {
    animation: fadeInUp 0.8s ease-out;
}

.mikish-hero-logo {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.mikish-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.mikish-hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mikish-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Action Buttons */
.mikish-button-container {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.mikish-btn-action {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mikish-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-primary.mikish-btn-action {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary.mikish-btn-action:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
}

.mikish-btn-paypal {
    background: linear-gradient(45deg, #0070ba, #003087);
    color: white;
    border: none;
}

.mikish-btn-paypal:hover {
    background: linear-gradient(45deg, #003087, #001c64);
    color: white;
}

/* Services Section */
.mikish-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mikish-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
}

.mikish-section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

.mikish-service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.mikish-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.mikish-service-icon {
    margin-bottom: 20px;
}

.mikish-service-icon i {
    font-size: 3rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mikish-service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 15px;
}

.mikish-service-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mikish-hero-section {
        padding: 60px 0 80px;
        min-height: 60vh;
    }
    
    .mikish-services-section {
        padding: 60px 0;
    }
    
    .mikish-btn-action {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .mikish-hero-logo {
        max-width: 80px;
        max-height: 80px;
    }
    
    .mikish-service-card {
        padding: 30px 20px;
    }
}

/* #endregion Mikish Group Information Page */

/* #region Drag and Drop Gallery Upload Styles */

/* Drag and Drop Zone Styles */
.drag-drop-zone {
    position: relative;
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.drag-drop-zone.drag-over {
    border-color: #28a745;
    background-color: #d4edda;
    transform: scale(1.02);
}

.drag-drop-content {
    position: relative;
    z-index: 1;
}

.drag-drop-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.drag-drop-zone:hover .drag-drop-icon {
    color: #007bff;
}

.drag-drop-zone.drag-over .drag-drop-icon {
    color: #28a745;
}

.drag-drop-title {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.drag-drop-subtitle {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.drag-drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.9), rgba(32, 134, 57, 0.9));
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.drag-drop-overlay.show {
    display: flex;
}

.drag-drop-overlay-content {
    text-align: center;
}

.drag-drop-overlay-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Selected files display */
.gallery-upload #selectedFilesText {
    font-size: 0.9rem;
}

.gallery-upload #selectedFilesText.has-files {
    color: #28a745 !important;
    font-weight: 600;
}

/* #endregion Drag and Drop Gallery Upload Styles */

/* #region Batch Rename Image Preview Styles */

/* Make the batch rename table more compact on smaller screens */
@media (max-width: 768px) {
    .preview-image {
        max-width: 60px !important;
        max-height: 50px !important;
    }
    
    .batch-rename .table th, 
    .batch-rename .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
    
    .batch-rename .suggested-name {
        font-size: 0.8em;
    }
    
    /* Mobile responsive styles for editable filename inputs */
    .editable-filename {
        min-width: 200px !important;
        font-size: 0.8em !important;
    }
    
    /* Smaller regenerate buttons on mobile */
    .regenerate-btn {
        padding: 2px 4px !important;
        font-size: 0.6em !important;
    }
}

/* Desktop styles for larger screens */
@media (min-width: 1200px) {
    .editable-filename {
        min-width: 300px;
    }
}

/* Pulse animation for execute button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* #endregion Batch Rename Image Preview Styles */



