/* Global Styles */
/*! @import */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Breadcrumb navigation */
.planit-breadcrumb {
    padding: 0.75rem 0 0.25rem;
    background: transparent;
}

.planit-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.planit-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
}

.planit-breadcrumb-link {
    color: #005f6b;
    font-weight: 600;
    text-decoration: none;
}

.planit-breadcrumb-link:hover {
    color: #004850;
    text-decoration: underline;
}

.planit-breadcrumb-text {
    color: #64748b;
    font-weight: 600;
}

.planit-breadcrumb-current {
    color: #1e293b;
    font-weight: 700;
}

.planit-breadcrumb-sep {
    color: #94a3b8;
    font-size: 0.75rem;
    user-select: none;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #0d6efd27;
    color: #0d6efd !important;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    padding: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0d6efd 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0d6efd 0%, #0d6efd 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    }

.btn-outline-primary {
    color: #0d6efd;
    background: transparent;
}

    .btn-outline-primary:hover {
        background: #0d6efd;
        color: white;
        transform: translateY(-1px);
    }

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #007bff !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15) !important;
}

.shadow-strong {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2) !important;
}

/* === Application Shell Layout === */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px); /* header + footer approx */
}

.app-top-panel {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 1.25rem;
}

.app-top-link {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.app-top-link:hover {
    background-color: #e5f0ff;
    color: #1d4ed8;
}

.app-main {
    display: flex;
    align-items: stretch;
}

.app-left-panel {
    width: 270px;
    min-width: 200px;
    background: #fff;
    color: #0d6efd;
    padding: .75rem 0.75rem;
    transition: width 0.25s ease, padding 0.25s ease, transform 0.25s ease;
    border:1px solid #e5e7eb;
}

.app-left-panel.collapsed {
    width: 76px;
    min-width: 76px;
    padding: 1rem 0.2rem;
    overflow: visible;
}

.app-left-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0d6efd;
    padding: 0 0.5rem 0.5rem;
}

.app-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.app-menu li + li {
    margin-top: 0.25rem;
}

    .app-menu a {
        display: flex;
        align-items: center;
        padding: 0.45rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.9rem;
        color: rgb(15, 23, 42);
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    }

        .app-menu a:hover {
            background: rgba(223, 236, 255, 0.9);
            color: rgb(15, 23, 42);
            transform: translateX(1px);
            margin-right: 20px;
        }

.app-menu-parent {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgb(15, 23, 42);
    padding: .35rem 0.75rem 0.25rem;
}

.app-submenu {
    list-style: none;
    padding-left: 0;
    margin: 0.15rem 0 0.35rem 1.75rem;
}

.app-submenu a {
    font-size: 0.85rem;
    opacity: 0.9;
}

.app-submenu-icon {
    width: 1rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.85;
    flex-shrink: 0;
}

a.Selected .app-submenu-icon {
    opacity: 1;
}

a.Selected {
    background-color: #0d6efd;
    color:#fff;
    margin-right:20px;
}
.app-top-logo span {
    font-size: 2rem;
}

.app-left-panel.collapsed .app-left-title {
    display: none;
}

.app-left-panel.collapsed .app-menu + .app-menu {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 71, 83, 0.1);
}

.app-left-panel.collapsed .app-submenu {
    display: block;
    margin: 0.2rem 0 0;
    padding: 0;
}

.app-left-panel.collapsed .app-submenu li + li {
    margin-top: 0.15rem;
}

.app-left-panel.collapsed .app-submenu a {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    padding: 0.4rem 0.15rem;
    margin-right: 0;
    text-align: center;
}

.app-left-panel.collapsed .app-submenu-icon {
    margin-right: 0 !important;
    width: auto;
    font-size: 0.9rem;
}

.app-left-panel.collapsed .app-menu a:hover,
.app-left-panel.collapsed a.Selected {
    margin-right: 0;
}

.app-menu-parent-label {
    margin-left: 0.25rem;
}

.app-menu-label-short {
    display: none;
}

.app-left-panel.collapsed .app-menu-label-full {
    display: none;
}

.app-left-panel.collapsed .app-menu-label-short {
    display: block;
}

.app-left-panel.collapsed .app-menu-parent {
    display: none;
}

.app-left-panel.collapsed .app-submenu a .app-menu-item-label {
    display: block;
    max-width: 100%;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.app-left-panel.collapsed .app-menu-label-short {
    display: block;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
}

.app-content {
    flex: 1;
    /*padding: 1rem 1rem;*/
    background-color: rgb(245 245 245);
    
    min-height: calc(100vh - 180px);
    width:calc(100vw - 270px);
}
.text-primary {
    --bs-text-opacity: 1;
    color: #0d6efd !important;
}
/* Floating right panel */
.app-right-panel {
    width: 320px;
    max-width: 90vw;
    background-color: #ffffff;
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 24px;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1.25rem;
    transform: translateX(0);
    transition: transform 0.25s ease;
    z-index: 1030; /* above main content, below navbar */
}

.app-right-panel.collapsed {
    transform: translateX(100%);
}

.app-right-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.35rem;
}

.app-right-body {
    padding-top: 0.75rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-layout {
        min-height: auto;
    }

    .app-main {
        position: relative;
    }

    .app-left-panel {
        position: fixed;
        top: 80px;
        bottom: 0;
        left: 0;
        z-index: 1030;
        transform: translateX(0);
    }

    .app-left-panel.collapsed {
        transform: translateX(-100%);
        width: 300px;
        min-width: 240px;
        padding: 1rem 0.75rem;
    }

    .app-content {
        padding: 1rem;
        min-height: auto;
    }

    .app-right-panel {
        top: 96px;
        bottom: 16px;
        width: 280px;
    }
}
