@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;500;600;700&display=swap');

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #2d3748;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Navbar Modernization */
.navbar-modern {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
}

.navbar-brand {
    font-weight: 700;
    color: #6c5ce7 !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #6c5ce7 !important;
    background-color: #f0f3ff;
}

.user-detail {
    color: #2d3748 !important;
    font-weight: 600;
    background: #edf2f7;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.user-detail:hover {
    background: #e2e8f0;
    text-decoration: none;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dropdown-item:active {
    background-color: #6c5ce7;
}

/* Floating Action Buttons (Right Icons) */
.right-icon {
    position: fixed;
    right: 20px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #4a5568;
    font-size: 1.2rem;
}

.right-icon:hover {
    transform: scale(1.1);
    color: #6c5ce7;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
}

/* Specific Positions for Tree Controls */
.zoom-in {
    bottom: 150px;
}

.zoom-out {
    bottom: 90px;
}

.download {
    bottom: 30px;
}

/* Modal Modernization */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 700;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
    background: #fff;
}

.modal-footer {
    border-top: 1px solid #f1f5f8;
    background: #f8f9fa;
    padding: 15px 30px;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    border-color: #a29bfe;
}

.btn-primary {
    background: #6c5ce7;
    border-color: #6c5ce7;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
    background: #5b4cc4;
    border-color: #5b4cc4;
    transform: translateY(-1px);
}

.btn-default {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-default:hover {
    background: #e2e8f0;
}

/* Loading Overlay */
.loading {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}