/* =========================================================
   Hotello Components - Consistent Styling
   Button, Label, and Form Element Standardization
   ========================================================= */

/* =========================================================
   BUTTONS - Standard Sizes
   ========================================================= */

/* Base button sizing */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Large button (for page headers and primary actions) */
.btn-lg-custom {
    min-width: 120px;
    height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Standard button (default size) */
.btn-md-custom {
    min-width: 100px;
    height: 36px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Small button (for table actions) */
.btn-sm-custom {
    min-width: 75px;
    height: 32px;
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 4px;
}

/* Extra small button (for inline actions) */
.btn-xs-custom {
    min-width: auto;
    height: 28px;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
}

/* =========================================================
   BUTTON COLOR SCHEMES
   ========================================================= */

/* Primary Button (Dark Blue) */
.btn-primary-custom {
    background-color: #172a46;
    border-color: #172a46;
    color: #ffffff;
}

    .btn-primary-custom:hover {
        background-color: #243b5c;
        border-color: #243b5c;
        color: #ffffff;
    }

    .btn-primary-custom:active {
        background-color: #1a2d50;
        border-color: #1a2d50;
    }

/* Secondary Button (Gray) */
.btn-secondary-custom {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

    .btn-secondary-custom:hover {
        background-color: #5c636a;
        border-color: #565e64;
        color: #ffffff;
    }

    .btn-secondary-custom:active {
        background-color: #545b62;
        border-color: #4e555b;
    }

/* Success Button (Green) */
.btn-success-custom {
    background-color: #198754;
    border-color: #198754;
    color: #ffffff;
}

    .btn-success-custom:hover {
        background-color: #157347;
        border-color: #146c43;
        color: #ffffff;
    }

    .btn-success-custom:active {
        background-color: #146c43;
        border-color: #13653c;
    }

/* Danger Button (Red) */
.btn-danger-custom {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

    .btn-danger-custom:hover {
        background-color: #c82333;
        border-color: #bd2130;
        color: #ffffff;
    }

    .btn-danger-custom:active {
        background-color: #bd2130;
        border-color: #b21830;
    }

/* Info Button (Blue) */
.btn-info-custom {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #ffffff;
}

    .btn-info-custom:hover {
        background-color: #31d5fc;
        border-color: #25d5fb;
        color: #ffffff;
    }

    .btn-info-custom:active {
        background-color: #0dcaf0;
        border-color: #0c63e4;
    }

/* Light Button (Gray border) */
.btn-light-custom {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 500;
}

    .btn-light-custom:hover {
        background-color: #e2e6ea;
        border-color: #dee2e6;
        color: #495057;
    }

    .btn-light-custom:active {
        background-color: #dae0e5;
        border-color: #cfe4f5;
    }

/* =========================================================
   LABELS - Standard Styling
   ========================================================= */

/* Form label (standard) */
.form-label-custom {
    display: block;
    margin-bottom: 0.4rem;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Form label (small) */
.form-label-sm {
    display: block;
    margin-bottom: 0.3rem;
    color: #495057;
    font-size: 0.72rem;
    font-weight: 500;
}

/* Form label (large) */
.form-label-lg {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Required mark */
.required-indicator {
    color: #dc3545;
    margin-left: 2px;
    font-weight: 600;
}

/* Optional label */
.optional-indicator {
    margin-left: 6px;
    padding: 2px 6px;
    background-color: #f1f3f5;
    border-radius: 3px;
    color: #6c757d;
    font-size: 0.65rem;
    font-weight: 400;
}

/* Help text / Description */
.form-help-text {
    display: block;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.70rem;
    font-weight: 400;
}

/* =========================================================
   FORM CONTROLS - Consistent Sizing
   ========================================================= */

/* Standard input/select height */
.form-control-custom,
.form-select-custom {
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #495057;
    box-shadow: none;
}

    .form-control-custom:focus,
    .form-select-custom:focus {
        border-color: #172a46;
        box-shadow: 0 0 0 0.15rem rgba(23, 42, 70, 0.10);
        color: #495057;
    }

    .form-control-custom::placeholder {
        color: #6c757d;
        opacity: 0.9;
    }

    .form-control-custom:disabled,
    .form-select-custom:disabled {
        background-color: #f8f9fa;
        color: #6c757d;
        cursor: not-allowed;
    }

/* Large form control */
.form-control-lg-custom {
    min-height: 40px;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
}

/* Small form control */
.form-control-sm-custom {
    min-height: 32px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
}

/* =========================================================
   INPUT GROUPS - Standard Styling
   ========================================================= */

.input-group-text-custom {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #ced4da;
    font-size: 0.78rem;
    font-weight: 500;
}

/* =========================================================
   BADGES & STATUS LABELS
   ========================================================= */

/* Standard badge */
.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Badge sizes */
.badge-lg {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
}

.badge-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
}

/* Badge variants */
.badge-success-custom {
    background-color: #e8f5ee;
    color: #198754;
}

.badge-danger-custom {
    background-color: #f8d7da;
    color: #dc3545;
}

.badge-info-custom {
    background-color: #cfe2ff;
    color: #0c63e4;
}

.badge-warning-custom {
    background-color: #fff3cd;
    color: #856404;
}

.badge-secondary-custom {
    background-color: #f1f3f5;
    color: #6c757d;
}

/* Status dot */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

/* =========================================================
   CARD HEADERS - Consistent Styling
   ========================================================= */

.card-header-custom {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0.7rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #172a46;
    font-size: 0.88rem;
    font-weight: 600;
}

    .card-header-custom i {
        font-size: 0.95rem;
        margin-right: 0.5rem;
    }

/* Dark card header */
.card-header-dark-custom {
    background-color: #172a46;
    color: #ffffff;
    border-bottom: 1px solid #172a46;
}

    .card-header-dark-custom i {
        color: #ffffff;
    }

/* =========================================================
   PAGE HEADERS - Consistent Sizing
   ========================================================= */

/* Page title */
.page-title-custom {
    margin: 0;
    color: #172a46;
    font-size: 1.35rem;
    font-weight: 600;
}

/* Page subtitle */
.page-subtitle-custom {
    display: block;
    margin-top: 0.3rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 400;
}

/* =========================================================
   ACTION GROUPS - Button Containers
   ========================================================= */

/* Form action container */
.action-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

/* Page action container (header level) */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Inline action group */
.inline-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   VALIDATION MESSAGES
   ========================================================= */

.validation-error-custom {
    display: block;
    margin-top: 0.3rem;
    color: #dc3545;
    font-size: 0.70rem;
    font-weight: 400;
}

.validation-summary-custom {
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    color: #842029;
    font-size: 0.78rem;
}

    .validation-summary-custom ul {
        margin: 0;
        padding-left: 20px;
    }

    .validation-summary-custom li {
        margin-bottom: 4px;
    }

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */

@media (max-width: 768px) {

    /* Stack action groups on mobile */
    .action-group {
        flex-direction: column;
        align-items: stretch;
    }

        .action-group .btn {
            flex: 1;
            min-width: auto !important;
        }

    /* Page header adjustments */
    .page-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .page-actions .btn {
            width: 100%;
        }

    /* Button size adjustments */
    .btn-lg-custom {
        height: 38px;
        min-width: auto;
    }

    .btn-md-custom {
        height: 36px;
        min-width: auto;
    }

    .btn-sm-custom {
        height: 32px;
        min-width: auto;
    }
}
