/**
 * Admin Layout Styles
 * Extracted from views/layouts/main.php inline CSS for better performance
 *
 * Related: RW-38 - Extract Inline CSS
 * Performance: Makes CSS cacheable by browser, improves page load time
 */

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #063735 0%, #0f4c4c 55%, #1c7a75 100%);
    box-shadow: 0 18px 36px -28px rgba(6, 55, 53, 0.6);
    color: #e9f7f6;
}

.app-navbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.app-navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #e9f7f6;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.app-navbar__brand-text {
    text-transform: uppercase;
}

.app-navbar__brand-image {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 6px;
    background: #fff;
    padding: 2px 6px;
    box-shadow: 0 6px 12px -10px rgba(6, 55, 53, 0.6);
}

.app-navbar__brand:hover,
.app-navbar__brand:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.app-navbar__toggle {
    display: none;
    background: transparent;
    border: none;
    color: #e9f7f6;
    font-size: 18px;
    padding: 4px 8px;
}

.app-navbar__menu {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 24px;
}

.app-navbar__link {
    color: #e6f6f4;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
}

.app-navbar__link:hover,
.app-navbar__link:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.app-navbar__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.app-navbar__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c4c 0%, #1ea79e 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px -16px rgba(6, 55, 53, 0.4);
}

.app-navbar__user {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-navbar__user-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b7d9d6;
}


.app-navbar__user-name {
    display: block;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 991px) {
    .app-navbar__toggle {
        display: inline-flex;
    }

    .app-navbar__menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-left: 0;
    }

    .app-navbar.is-open .app-navbar__menu {
        display: flex;
    }

    .app-navbar__meta {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
        margin-left: 0;
    }
}

.breadcrumb--compact {
    margin: 0;
    padding: 0;
}

.app-container {
    padding-top: 24px;
    padding-bottom: 40px;
}

.app-shell {
    display: flex;
    flex-wrap: wrap;
}

.app-sidebar {
    background: #fff;
    border: 1px solid rgba(15, 76, 76, 0.12);
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 18px 36px -32px rgba(6, 55, 53, 0.25);
    margin-bottom: 20px;
}

.app-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.app-sidebar__title {
    font-weight: 600;
    color: #184442;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
}

.app-sidebar__toggle {
    padding: 0 6px;
    color: #37726f;
}

.app-sidebar__section {
    margin-bottom: 16px;
}

.app-sidebar__section:last-child {
    margin-bottom: 0;
}

.app-sidebar__section-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4e716f;
    margin-bottom: 6px;
    font-weight: 600;
}

.app-sidebar__nav .nav {
    margin-bottom: 8px;
}

.app-sidebar__nav .nav > li > a {
    border-radius: 8px;
    color: #325553;
    padding: 10px 12px;
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.app-sidebar__nav .nav > li > a:hover,
.app-sidebar__nav .nav > li > a:focus {
    background: rgba(30, 167, 158, 0.12);
    color: #0f4c4c;
    transform: translateX(4px);
}

.app-sidebar__nav .nav > li.active > a,
.app-sidebar__nav .nav > li.active > a:focus,
.app-sidebar__nav .nav > li.active > a:hover {
    background: linear-gradient(135deg, #0f4c4c 0%, #1ea79e 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 24px -18px rgba(15, 76, 76, 0.35);
}

.app-content {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 76, 0.1);
    box-shadow: 0 25px 45px -35px rgba(6, 55, 53, 0.25);
    padding: 24px;
    min-height: 60vh;
    margin-bottom: 40px;
}

.app-content--form {
    padding: 24px;
}

.app-content--form .form-layout {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-content--form .form-layout .page-header {
    margin: 0;
}

@media (max-width: 991px) {
    .app-sidebar {
        position: relative;
    }

    .app-sidebar__nav {
        display: none;
    }

    .app-sidebar.is-open .app-sidebar__nav {
        display: block;
        margin-top: 12px;
    }
}

@media (min-width: 992px) {
    .app-sidebar {
        position: sticky;
        top: 100px;
    }

    .app-sidebar__toggle {
        display: none;
    }
}
