html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/parts.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 16px;
}

.form-control-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary-login {
    background: linear-gradient(135deg, #667eea 0%, #FFFFFF 100%);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.login-footer {
    text-align: center;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.catalog-viewer {
    height: auto;
    overflow: scroll;
}

.sidebar-content {
    background-color: #f8f9fa;
}

.part-drawing-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.part-drawing-item:hover {
    border-left-color: #0d6efd;
    background-color: #e7f3ff;
}

.part-drawing-item.active {
    border-left-color: #0d6efd;
    background-color: #e7f3ff;
    font-weight: 500;
}

.parts-list {
    max-height: 400px;
    overflow-y: auto;
}

.content-area {
    overflow-y: auto;
    background-color: #ffffff;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}
.family-card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.family-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.models-preview {
    max-height: 60px;
    overflow: hidden;
}

.badge {
    font-size: 0.75em;
}

.drawing-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 15px;
    background-color: #f8f9fa;
    position: relative;
    overflow: visible;
}

.drawing-image {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: crosshair;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    z-index: 1;
}

.hotspot:hover {
    animation: pulse 1s infinite;
}

.nav-pills .nav-link {
    color: #495057;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
    color: white;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
}

.badge {
    font-size: 0.8em;
}

.modal-header {
    border-bottom: 2px solid #007bff;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

.card-header {
    font-weight: 600;
}

.table-responsive {
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.375rem;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* SubAssembly modal specific styles */
.subassembly-details .info-item {
    margin-bottom: 1rem;
}

.subassembly-details .info-item label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.subassembly-details .info-value {
    font-size: 1rem;
}

.subassembly-details .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.subassembly-details .alert-light {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
}

.card-header .fas {
    font-size: 1rem;
}

/* Responsive adjustments */

.subassembly-details .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}