﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.copy-feedback {
    animation: copyPulse 0.7s ease-out;
    color: #28a745;
    text-shadow: 0 0 6px rgba(40, 167, 69, 0.6);
}

@keyframes copyPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(40, 167, 69, 0.0);
    }
    60% {
        transform: scale(1.25);
        text-shadow: 0 0 10px rgba(40, 167, 69, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(40, 167, 69, 0.0);
    }
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  /* Set the fixed height of the footer here */
  height: 60px;
  line-height: 60px; /* Vertically center the text there */
}

.chosen-div {
    padding: 0;
}

.quote-request-map-container {
    position: relative;
    min-height: 250px;
}

.quote-request-map-div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.form-control-long {
    min-width: 16em;
}

/* ==========================================================================
   User Management Mobile Styles
   ========================================================================== */

/* Mobile-only card layout */
@media (max-width: 767.98px) {
    body nav.bg-dark {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Sticky search header */
    .user-search-header {
        position: sticky;
        top: 56px;
        z-index: 100;
        background: #fff;
        padding: 1rem;
        margin: 0 0 1rem 0;
        border-bottom: 1px solid #dee2e6;
    }

    .user-search-header .jumbotron {
        padding: 0;
        margin: 0;
        background: transparent;
    }

    /* Title row */
    .user-search-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
    }

    .user-search-title-row h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    /* Search form stacked */
    .user-search-form-mobile {
        display: flex;
        gap: 0.5rem;
    }

    .user-search-form-mobile .form-control {
        flex: 1;
    }

    /* Hide admin filter on mobile */
    .admin-filter-desktop {
        display: none !important;
    }

    /* User card list */
    .user-card-list {
        margin: 0;
        padding: 0 0.75rem;
    }

    .user-card {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
        background: #fff;
    }

    .user-card:active {
        background: #f8f9fa;
    }

    .user-card-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-card-email {
        font-weight: 500;
    }

    .user-card-separator {
        color: #6c757d;
        margin: 0 0.5rem;
    }

    .user-card-name {
        color: #6c757d;
    }

    .user-card-menu {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: #6c757d;
        background: none;
        border: none;
        padding: 0;
        margin-left: 0.5rem;
    }

    .user-card-menu:hover,
    .user-card-menu:focus {
        color: #495057;
        outline: none;
    }

    /* Action menu dropdown */
    .user-action-menu {
        min-width: 200px;
    }

    .user-action-menu .dropdown-item {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .user-action-menu .dropdown-item i {
        width: 1.25rem;
        text-align: center;
    }

    /* Visual states */
    .user-card.inactive-user {
        opacity: 0.6;
    }

    .user-card.inactive-user .user-card-email,
    .user-card.inactive-user .user-card-name {
        color: #6c757d;
    }

    .user-card.broken-user .user-card-content {
        text-decoration: line-through;
        color: red;
    }

    /* Hide desktop table on mobile */
    .user-table-desktop {
        display: none !important;
    }
}

/* Desktop: hide mobile elements */
@media (min-width: 768px) {
    .user-card-list {
        display: none !important;
    }

    .user-search-mobile-only {
        display: none !important;
    }
}

/* ==========================================================================
   User Edit Page Styles
   ========================================================================== */

.user-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-edit-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.user-edit-jumbotron {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
}

.user-edit-actions .btn.btn-outline-secondary.text-muted:hover,
.user-edit-actions .btn.btn-outline-secondary.text-muted:focus,
.user-edit-actions .btn.btn-outline-secondary.text-muted:hover i,
.user-edit-actions .btn.btn-outline-secondary.text-muted:focus i {
    color: #fff !important;
}

.user-action-cell {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.user-action-cell {
    white-space: nowrap;
    font-size: 0.85rem;
}

.user-roles-cell,
.user-groups-cell {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.user-table-desktop .col-email { width: 18% !important; }
.user-table-desktop .col-first-name { width: 8% !important; }
.user-table-desktop .col-last-name { width: 11% !important; }
.user-table-desktop .col-roles { width: 13.5% !important; }
.user-table-desktop .col-groups { width: 21.5% !important; }
.user-table-desktop .col-action { width: 7% !important; }

.user-edit-form-buttons {
    margin-bottom: 0;
}

.validation-message {
    display: block;
    margin-top: 0.25rem;
}

.validation-message:empty {
    display: none;
}

@media (max-width: 767.98px) {
    .user-edit-actions {
        flex-direction: column;
    }

    .user-edit-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .user-edit-form-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-edit-form-buttons .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .user-edit-form-buttons {
        padding-bottom: 1rem;
    }
}
