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;
}

/* Theme Variables - Can be controlled by Theme Management */
:root {
    --form-primary-color: #007bff;
    --form-primary-light: #e3f2fd;
    --form-primary-dark: #0056b3;
    --form-success-color: #28a745;
    --form-success-light: rgba(40, 167, 69, 0.25);
    --form-border-width: 3px;
    --form-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    --form-focus-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Module Header Colors - Now controlled by Theme Management System */
}

/* Enhanced Form Styling - Create Forms */
.create-form .form-control,
.create-form .form-select,
.form-enhanced .form-control,
.form-enhanced .form-select {
    border: var(--form-border-width) solid var(--form-primary-color) !important;
    background-color: var(--form-primary-light) !important;
    box-shadow: var(--form-shadow) !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.create-form .form-control:focus,
.create-form .form-select:focus,
.form-enhanced .form-control:focus,
.form-enhanced .form-select:focus {
    border-color: var(--form-success-color) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 0.3rem var(--form-success-light), var(--form-focus-shadow) !important;
    transform: scale(1.02) !important;
}

.create-form .form-control:hover,
.create-form .form-select:hover,
.form-enhanced .form-control:hover,
.form-enhanced .form-select:hover {
    border-color: var(--form-primary-dark) !important;
    background-color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Module Header Styling */
.module-header {
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
    color: white;
}

.module-header.hrmanagement-header {
    background: linear-gradient(135deg, var(--hrmanagement-color-start), var(--hrmanagement-color-end));
}

.module-header.asset-header {
    background: linear-gradient(135deg, var(--asset-color-start), var(--asset-color-end));
}

.module-header.itusermanagement-header {
    background: linear-gradient(135deg, #6f42c1, #563d7c) !important;
}

/* ITUserManagement specific fixes */
.alert-danger {
    display: none !important;
}

.module-header.department-header {
    background: linear-gradient(135deg, var(--department-color-start), var(--department-color-end));
}

.module-header.location-header {
    background: linear-gradient(135deg, var(--location-color-start), var(--location-color-end));
}

.module-header.business-header {
    background: linear-gradient(135deg, var(--business-color-start), var(--business-color-end));
}

.module-header.costcenter-header {
    background: linear-gradient(135deg, var(--costcenter-color-start), var(--costcenter-color-end));
}

.module-header.organization-header {
    background: linear-gradient(135deg, var(--organization-color-start), var(--organization-color-end));
}

.module-header.core-header {
    background: linear-gradient(135deg, var(--core-color-start), var(--core-color-end));
}

.module-header.navigationmanagement-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.module-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.module-header .header-text h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-header .header-text p {
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    font-size: 1rem;
}

.module-header .header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.module-header .header-actions .btn {
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.module-header .header-actions .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: #28a745;
    border: none;
}

.module-header .header-actions .btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.module-header .header-actions .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.module-header .header-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Card Improvements */
.create-form-card,
.form-enhanced-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.create-form-card .card-body,
.form-enhanced-card .card-body {
    padding: 2.5rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header:first-of-type {
    margin-top: 0;
}

.section-header i {
    color: #28a745;
}

/* Form Labels */
.form-enhanced .form-label,
.create-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .module-header .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .module-header .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .create-form-card .card-body,
    .form-enhanced-card .card-body {
        padding: 1.5rem;
    }
}