/* ----------------------------------------------------------------------------
        Structure
----------------------------------------------------------------------------- */
.main {
    padding-top: 80px;
}

.main .row {
    margin: 0px;
}

.blog-sidebar {
  padding-top: 0px;
}

@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1240px !important;
  }
}

footer {
  margin: 2% -15px 0px -15px;;
}

/* ----------------------------------------------------------------------------
        Typography -  icons
----------------------------------------------------------------------------- */

.icon-input-btn .material-icons {
    display: inline-block;
    position: absolute;
    left: 0.45em;
    top: 30%;
}

.white-font {color: #fff;}

/* Rules for sizing the icon. */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }

.btn-pink, .btn-orange, .btn-blue, .btn-green, .btn-yellow, .btn-default {
    font-weight: 600;
    font-size: 18px;
}


/* ----------------------------------------------------------------------------
        tablesorter
----------------------------------------------------------------------------- */

.tablesorter-default { font: 13px/18px 'Open Sans', Tahoma, Arial, Verdana;}
.tablesorter-default th {color: #008000; font-size: 16px;}
.tablesorter-default td.alert { border-radius: 0; text-align: center;}
.tablesorter-default td.alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.tablesorter-default td.alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.tablesorter-default td.alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.tablesorter-default td { background-color: transparent; font-size: 120%;}
.tablesorter-default tr:hover { background-color: transparent; }

.table-home tr.tablesorter-filter-row { display: none; }
.table-home .pagerSavedHeightSpacer {height: auto !important;}

.table-striped>tbody>tr:nth-of-type(odd) { background-color: #f4f4f4; }

.tablesorter-default tr.pagerSavedHeightSpacer {height: auto !important;}
.tablesorter-default .tablesorter-filter-row td {text-align: left;}


/* pager wrapper, div */
.tablesorter-pager {
  padding: 5px;
}
/* pager wrapper, in thead/tfoot */
td.tablesorter-pager {
  background-color: #e6eeee;
  margin: 0; /* needed for bootstrap .pager gets a 18px bottom margin */
}
/* pager navigation arrows */
.tablesorter-pager img {
  vertical-align: middle;
  margin-right: 2px;
  cursor: pointer;
}

/* pager output text */
.tablesorter-pager .pagedisplay {
  padding: 0 5px 0 5px;
  width: 50px;
  text-align: center;
}

/* pager element reset (needed for bootstrap) */
.tablesorter-pager select {
  margin: 0;
  padding: 0;
}

/*** css used when "updateArrows" option is true ***/
/* the pager itself gets a disabled class when the number of rows is less than the size */
.tablesorter-pager.disabled {
  display: none;
}
/* hide or fade out pager arrows when the first or last row is visible */
.tablesorter-pager .disabled {
  /* visibility: hidden */
  opacity: 0.5;
  filter: alpha(opacity=50);
  cursor: default;
}

/* ----------------------------------------------------------------------------
        Roster Page
----------------------------------------------------------------------------- */

ul.list-group { margin: 0; }
p.card-link {margin: 0;}
.card-body { padding: .75rem 1.25rem;}


/* ----------------------------------------------------------------------------
        Alert
----------------------------------------------------------------------------- */

.alert {margin-top: 1rem; width: -moz-fit-content;}


/* ----------------------------------------------------------------------------
        Form
----------------------------------------------------------------------------- */

.text-muted {
    padding-bottom: 20px;
}

.form-control {
    margin-bottom: 10px;
}

/* Sidebar button spacing */
.sidebar-btn-contact {
    margin-bottom: 20px;
}
.sidebar-btn-directions {
    margin-bottom: 0;
}

/* Google Maps container spacing */
.google-maps-container {
    margin-bottom: 10px;
}

/* Google Maps iframe styling */
.sidebar-maps-iframe {
    border: 0;
    border-radius: 8px;
}

/* Find Us info spacing */
.find-us-info {
    margin-bottom: 15px;
}

.homepage-section {
    margin-bottom: 3%;
}

/* ----------------------------------------------------------------------------
        Toys Page - Image Hover Zoom
----------------------------------------------------------------------------- */

.toy-hover-zoom {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block !important;
    vertical-align: middle !important;
}

.toy-hover-zoom:hover {
    transform: scale(1.05) !important;
    z-index: 1000 !important;
    position: relative !important;
}

/* Ensure hover works in table cells with flexbox */
.table tbody td .toy-hover-zoom {
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.table tbody td .toy-hover-zoom:hover {
    transform: scale(1.05) !important;
    z-index: 1000 !important;
    position: relative !important;
}

/* Ensure click events work properly */
.table tbody td .toy-hover-zoom:active {
    transform: scale(0.95) !important;
}

/* Force image hover functionality to work */
.table tbody td img.toy-hover-zoom {
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
}

.table tbody td img.toy-hover-zoom:hover {
    transform: scale(1.05) !important;
    z-index: 1000 !important;
    position: relative !important;
}

.table tbody td img.toy-hover-zoom:active {
    transform: scale(0.95) !important;
}

.image-zoom-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.image-zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
}

.image-zoom-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-zoom-title {
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.image-zoom-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

/* ----------------------------------------------------------------------------
        Toys Page - Status Badges (List View)
----------------------------------------------------------------------------- */

/* Ensure status badges display properly in list view */
.table td .badge {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    display: inline-block;
}

/* Override any conflicting styles for badges in table */
.table td .badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.table td .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

.table td .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Override tablesorter alert styles that conflict with badges */
.tablesorter-default td .badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.tablesorter-default td .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
    border: none !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.tablesorter-default td .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
    border: none !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* ----------------------------------------------------------------------------
        Toys Page - Table Vertical Alignment
        Updated: 2024-12-19 15:50 - Image hover fix
----------------------------------------------------------------------------- */

/* ----------------------------------------------------------------------------
        Individual Toy Page - Footer Layout Fix
----------------------------------------------------------------------------- */

/* Ensure proper page layout for individual toy pages only */
body.toy-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.toy-page .main {
    flex: 1;
    padding-bottom: 2rem;
}

/* Ensure footer stays at bottom for toy pages */
body.toy-page footer {
    margin-top: auto;
}

/* Only apply to toys page tables */
.toys-page .table-responsive table.table td, 
.toys-page .table-responsive table.table th,
.toys-page .table tbody td,
.toys-page .table tbody th,
.toys-page .table td,
.toys-page .table th {
  vertical-align: middle !important;
  height: auto !important;
}

/* Images vertical centering - only for toys page */
.toys-page .table tbody td img {
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

/* Text content vertical centering - only for toys page */
.toys-page .table tbody td strong,
.toys-page .table tbody td p,
.toys-page .table tbody td span {
    vertical-align: middle;
    display: inline-block;
}

/* Alert/status elements vertical centering - only for toys page */
.toys-page .table tbody td .alert {
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

/* Button vertical centering and styling - only for toys page */
.toys-page .table tbody td .btn {
    vertical-align: middle;
    display: inline-block;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2 !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}

/* Remove transform effects on hover for table buttons */
.table tbody td .btn:hover {
    transform: none !important;
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.table tbody td .btn:active {
    transform: none !important;
    background-color: #004085 !important;
    border-color: #004085 !important;
}

/* Force button styling with maximum specificity */
.tablesorter-default tbody td .btn,
.table tbody td .btn.btn-success,
.table tbody td a.btn,
.table tbody td button.btn {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2 !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
}

.tablesorter-default tbody td .btn:hover,
.table tbody td .btn.btn-success:hover,
.table tbody td a.btn:hover,
.table tbody td button.btn:hover {
    transform: none !important;
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* Override Bootstrap button styles specifically for table buttons */
.table tbody td .btn-success {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2 !important;
    border-radius: 0.25rem !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

/* Additional specific targeting for better vertical centering */
.table-responsive .table tbody td {
    vertical-align: middle !important;
}

/* Override any conflicting vertical alignment */
.table tbody tr td {
    vertical-align: middle !important;
}

/* Force vertical centering with flexbox as fallback */
.table tbody td {
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
}

/* Ensure content within flexbox cells is properly aligned */
.table tbody td > * {
    flex-shrink: 0;
}



