/* Consolidated custom styles from custom_frontend.css into custom.css, and added new rules for sidebar navigation alignment, including flexbox properties, spacing, active states, and SVG icon sizing. */

/* Custom Frontend Manager Styles */

/* Sidebar Navigation Alignment */
.sidebar__menu-group ul.sidebar_nav {
    margin: 90px 0 0 0;
}

.sidebar__menu-group ul.sidebar_nav li {
    margin-bottom: 5px;
    /* Consistent spacing */
}

.sidebar__menu-group ul.sidebar_nav li>a {
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 12px 30px;
    line-height: 1.5;
    white-space: nowrap;
    /* Prevent wrapping */
    color: #5a5f7d;
    /* Ensure consistent default color */
    text-decoration: none;
}

.sidebar__menu-group ul.sidebar_nav li>a:hover,
.sidebar__menu-group ul.sidebar_nav li>a.active {
    color: #5F63F2;
    /* Active/Hover color */
    background-color: rgba(95, 99, 242, 0.05);
    /* Light background for active state */
    border-radius: 0 30px 30px 0;
    /* Rounded right edge for style */
    border-right: 3px solid #5F63F2;
    /* Active indicator */
}

.sidebar__menu-group ul.sidebar_nav li>a .nav-icon {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar__menu-group ul.sidebar_nav li>a .nav-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar__menu-group ul.sidebar_nav li>a .toggle-icon {
    margin-left: auto;
    font-size: 14px;
    /* Slightly larger toggle arrow */
}

/* Cards with premium feel */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid #edf2f9 !important;
    padding: 1.5rem !important;
}

.card-header h6,
.card-header h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Enhancing inputs */
.form-control {
    border-radius: 8px !important;
    border: 1px solid #e3e6ef !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fdfdfd;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #5F63F2 !important;
    box-shadow: 0 0 0 4px rgba(95, 99, 242, 0.1) !important;
}

/* Premium Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    color: #8a96a3;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: none !important;
    border-bottom: none !important;
    padding: 1rem !important;
}

.table tbody td {
    vertical-align: middle !important;
    color: #4a5568;
    font-weight: 500;
    padding: 1rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.table-bordered {
    border: 1px solid #f1f5f9 !important;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #f1f5f9 !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #5F63F2 0%, #4a4eea 100%) !important;
    border: 1px solid transparent !important;
    /* Fixed height matching */
    box-shadow: 0 4px 12px rgba(95, 99, 242, 0.25) !important;
    border-radius: 6px !important;
    padding: 0rem 1rem !important;
    /* Medium size */
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(95, 99, 242, 0.35) !important;
    transform: translateY(-1px);
}

/* Custom Secondary Button */
.btn-secondary {
    background: #e3e6ef !important;
    border: 1px solid #e3e6ef !important;
    color: #5a5f7d !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    padding: 0rem 1rem !important;
    /* Medium size */
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #dbe0eb !important;
    color: #2c3e50 !important;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem;
}

/* Action Buttons in Table */
.btn-outline-info {
    color: #00AAFF !important;
    border-color: rgba(0, 170, 255, 0.2) !important;
    background: rgba(0, 170, 255, 0.05) !important;
    border-radius: 6px !important;
}

.btn-outline-info:hover {
    background: #00AAFF !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3);
}

.btn-outline-danger {
    color: #FF4D4F !important;
    border-color: rgba(255, 77, 79, 0.2) !important;
    background: rgba(255, 77, 79, 0.05) !important;
    border-radius: 6px !important;
}

.btn-outline-danger:hover {
    background: #FF4D4F !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.3);
}


/* Modal Styling */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 1.5rem !important;
    background: #fff;
    border-radius: 16px 16px 0 0 !important;
}

.modal-footer {
    border-top: 1px solid #f0f0f0 !important;
    padding: 1.5rem !important;
    background: #fcfcfc;
    border-radius: 0 0 16px 16px !important;
}

/* Image Thumbnails */
img {
    border-radius: 6px;
}