/**
 * --------------------------------------------------------------------------------
 * Admin Modern Premium UI Styles
 * Centralized stylesheet for standardizing Blade views across the application.
 * --------------------------------------------------------------------------------
 */

/* =========================================================================
   1. Modern Card Containers
   ========================================================================= */
.modern-card, 
.modern-form-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: #fff;
    margin-bottom: 25px;
}

/* =========================================================================
   2. Modern Headers (Gradient Dark Blue)
   ========================================================================= */
.modern-header,
.modern-form-header {
    background: linear-gradient(135deg, var(--brand-navy, #4482c8), #1d334d);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
}
.modern-header h4,
.modern-form-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}
.modern-header h4 i,
.modern-form-header h4 i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--brand-orange, #F3780A); /* Brand Orange */
}

/* =========================================================================
   3. Custom Form Inputs
   ========================================================================= */
.custom-label {
    font-weight: 600;
    color: #1b3a5f;
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.custom-input {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 10px 15px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}
.custom-input:focus {
    background: #fff;
    border-color: var(--brand-orange, #F3780A);
    box-shadow: 0 0 0 3px rgba(243, 120, 10, 0.15);
    outline: none;
}

/* =========================================================================
   4. Location/Filter Wrappers
   ========================================================================= */
.location-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.filter-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

/* =========================================================================
   5. Dynamic Rows (e.g. Traffic signs, multiple entries)
   ========================================================================= */
.traffic-sign-row,
.dynamic-form-row {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1.5rem !important;
}
.traffic-sign-row:hover,
.dynamic-form-row:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
}
.row-number-badge {
    position: absolute;
    top: -12px;
    left: 15px;
    background: var(--brand-orange, #F3780A);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   6. Buttons Customization
   ========================================================================= */
/* Submit Form Buttons */
.btn-submit-modern {
    background: linear-gradient(135deg, var(--brand-navy, #4482c8), #1d334d);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 10px rgba(27, 58, 95, 0.3);
    transition: all 0.3s ease;
}
.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 58, 95, 0.4);
    color: white;
}
.btn-cancel-modern {
    background: #e2e8f0;
    color: #475569;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-cancel-modern:hover {
    background: #cbd5e1;
    color: #1e293b;
    text-decoration: none;
}

/* Add New / Register Action Buttons */
.btn-register {
    background: linear-gradient(135deg, var(--brand-orange, #F3780A), #d96500);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(243, 120, 10, 0.3);
    text-decoration: none;
}
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 120, 10, 0.4);
    color: white;
    text-decoration: none;
}

/* Dynamic Add Row / Add More */
.btn-dashed-add {
    width: 100%;
    padding: 12px;
    background: rgba(243, 120, 10, 0.05);
    border: 2px dashed var(--brand-orange, #F3780A);
    color: var(--brand-orange, #F3780A);
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.btn-dashed-add:hover {
    background: var(--brand-orange, #F3780A);
    color: white;
}

/* Small Action Item Buttons (Tables, Rows) */
.btn-action-remove {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-action-remove:hover {
    background: #dc3545;
    color: white;
}

.btn-view, .btn-view-modern {
    background: rgba(68, 130, 200, 0.1);
    color: var(--brand-navy, #4482c8);
    border: none;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-view:hover, .btn-view-modern:hover {
    background: var(--brand-navy, #4482c8);
    color: white;
    text-decoration: none;
}

.btn-edit-modern {
    background: rgba(243, 120, 10, 0.1);
    color: var(--brand-orange, #F3780A);
    border: none;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-edit-modern:hover {
    background: var(--brand-orange, #F3780A);
    color: white;
    text-decoration: none;
}

.btn-delete-modern {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: none;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-delete-modern:hover {
    background: #dc2626;
    color: white;
    text-decoration: none;
}

/* Back Button in Headers */
.btn-back-modern {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-back-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}


/* =========================================================================
   7. Tables & Information Display
   ========================================================================= */
.modern-table {
    width: 100%;
}
.modern-table th {
    background: #f8fafc;
    color: var(--brand-navy, #4482c8);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 15px;
}
.modern-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.modern-table tbody tr {
    transition: all 0.2s ease;
}
.modern-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Details and Quantity Badges */
.badge-quantity {
    background: rgba(68, 130, 200, 0.1);
    color: var(--brand-navy, #4482c8);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Info Blocks (for Show pages, Dashboard details, etc) */
.info-block {
    background: #f8fafc;
    border-left: 4px solid var(--brand-orange, #F3780A);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.info-block strong {
    color: var(--brand-navy, #4482c8);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.info-block span {
    font-weight: 700;
    color: #334155;
    font-size: 1.1rem;
}
