/* styles.css - Main stylesheet that imports all modules */

/* Import all CSS modules in logical order */
@import url('base.css');        /* Core variables and base styles */
@import url('layout.css');      /* Sidebar and layout components */
@import url('table.css');       /* Table styling and components */
@import url('status.css');      /* Status badges and indicators */
@import url('buttons.css');     /* Button styles and components */
@import url('user-auth.css');   /* User interface and authentication */

/* Additional utility classes and overrides can go here */

/* Utility classes */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Spacing utilities */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }

.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }

/* Custom utility classes specific to the application */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Print styles */
@media print {
    .sidebar,
    .btn,
    .action-buttons {
        display: none !important;
    }
    
    .table {
        font-size: 12px;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}


/* Only show validation states after user interaction */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none !important;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Reduce visual noise on form load */
.form-control {
    transition: border-color 0.15s ease-in-out;
}

/* Only show when form has been submitted or field has been touched */
.was-validated .form-control.is-invalid ~ .invalid-feedback,
.form-submitted .form-control.is-invalid ~ .invalid-feedback {
    display: block !important;
}

.detail-value {
    text-align: right;
}

/* Or to right-align both label and value */
.detail-row {
    text-align: right;
}

/* Or for a two-column justified layout */
.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    font-weight: bold;
    text-align: left;
}

.detail-value {
    text-align: right;
}