/* Division Hover Component Styles */
.samskrita-bharati-btn {
    /* Use default nav-item styling - no special background or colors */
}

.samskrita-bharati-btn:hover {
    /* Use default nav-item hover styling */
}

.samskrita-bharati-btn i {
    /* Use default nav-item icon styling */
}

/* Divisions Container */
.divisions-container {
    margin: 8px 0;
    padding: 0 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Division Buttons */
.division-button {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.division-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.division-button.active {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Division Icon */
.division-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 10px;
    color: white;
    font-size: 14px;
}

.division-icon.warning {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
}

.division-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.division-icon.info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* Division Name */
.division-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* Division Arrow */
.division-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    transition: transform 0.3s ease;
}

.division-button:hover .division-arrow {
    color: #ffc107;
}

/* Tree Node Structure */
.tree-node {
    margin-bottom: 4px;
}

.tree-node-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.tree-node-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tree-node-children {
    margin-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
    margin-top: 4px;
}

.tree-node-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: white;
}

.tree-node-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffc107;
}

/* Special styling for Tasks buttons */
.tree-node-item.tasks-button {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-weight: 600;
}

.tree-node-item.tasks-button:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateX(2px);
}

.tree-node-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

/* Default icon styling for tree node items */
.tree-node-item .tree-node-icon {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Tasks button icon styling */
.tree-node-item.tasks-button .tree-node-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.tree-node-icon.primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.tree-node-icon.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

.tree-node-icon.success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.tree-node-icon.info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
}

.tree-node-icon.secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.tree-node-icon.dark {
    background: linear-gradient(135deg, #343a40, #23272b);
    color: white;
}

.tree-node-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.tree-node-arrow {
    margin-left: 8px;
    transition: transform 0.2s ease;
    color: #ccc;
}

.tree-node-arrow i {
    font-size: 12px;
}

.division-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: white;
    transition: all 0.2s ease;
    font-size: 13px;
}

.division-item:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.division-item i {
    margin-right: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    width: 16px;
    text-align: center;
}

.division-item:hover i {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
    .divisions-container {
        margin-left: 15px;
        padding: 0 8px;
    }
    
    .division-button {
        padding: 8px 10px;
        margin: 4px 0;
    }
    
    .division-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .division-name {
        font-size: 13px;
    }
    
    .division-items {
        min-width: 180px;
        margin-left: 6px;
    }
    
    .division-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .divisions-container {
        margin-left: 10px;
        padding: 0 6px;
    }
    
    .division-button {
        padding: 6px 8px;
        margin: 3px 0;
    }
    
    .division-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        margin-right: 6px;
    }
    
    .division-name {
        font-size: 12px;
    }
    
    .division-items {
        min-width: 160px;
        margin-left: 4px;
    }
    
    .division-item {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus and accessibility */
.division-button:focus {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Loading state */
.division-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.division-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
