/*
 * Liberty Place (LP) Dedicated Stylesheet
 * Scoped styles and UI enhancements for the Liberty Place module
 */

/* General & Layout Enhancements */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
    background-color: #f7fafc;
}

/* Navbar */
.site-header .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.site-header .navbar-brand {
    display: flex;
    align-items: center;
}

.site-header .navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.site-header .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-top: 0;
}

.site-header .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-bottom: none;
    margin-top: 0;
}

/* Sidebar Styling */
.sidebar {
    background: linear-gradient(180deg, #466c8f 0%, #304d6a 100%);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar h4,
.sidebar-header {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.sidebar-link-wrapper .btn,
.sidebar .btn {
    display: block;
    width: calc(100% - 1.5rem);
    margin: 0.25rem 0.75rem;
    padding: 0.5rem 0.85rem;
    color: #e2e8f0 !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    border-radius: 0.35rem;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    background: transparent;
}

.sidebar-link-wrapper .btn:hover,
.sidebar .btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    margin-left: 0.75rem;
    transform: translateX(3px);
}

.sidebar-link-wrapper .btn.sidebar-active,
.sidebar .btn.sidebar-active {
    background-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-left: 3px solid #E89A4D;
    font-weight: 600;
    margin-left: 0.75rem;
}

/* Main Content Area */
.main-header {
    margin-left: 220px;
    padding-top: 1rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .main-header {
        margin-left: 0;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 1.5rem;
    }
}

/* Cards & Containers */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.card-header .btn-link {
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-header .btn-link:hover {
    color: #1a4971;
    text-decoration: none;
}

/* Accordion Polishing */
.accordion .card {
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion .card-header button.btn-link::after {
    font-family: "Font Awesome 5 Free";
    content: "\f078";
    font-weight: 900;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.accordion .card-header button.btn-link.collapsed::after {
    transform: rotate(-90deg);
}

/* Modern Data Table */
.table {
    color: #2d3748;
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-top: 1px solid #edf2f7;
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: #f7fafc;
}

/* Auth Cards */
.lp-auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.lp-auth-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lp-auth-card .card-header {
    background: transparent;
    border-bottom: none;
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.lp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ebf8ff;
    color: #3182ce;
}

/* Dashboard Action Cards */
.lp-dashboard-card {
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.lp-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* Form Controls */
.form-control:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.2);
}
