/* Oracle Fusion Applications-inspired Corporate ERP Dashboard Styles */

/* Main dashboard styling */
body {
    background-color: #f8fafc !important;
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a202c;
}

/* Greeting text styling */
.greeting-text {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

/* Sidebar Navigation Styles - Oracle Fusion Style */
.main-sidebar {
    background: white !important;
    color: #2d3748;
}

/* Oracle Fusion-style sidebar links */
.sidebar .nav-link {
    color: #4a5568;
    margin: 3px 8px;
    padding: 10px 12px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #ebf8ff !important;
    color: #2b6cb0 !important;
    padding-left: 15px !important;
}

.sidebar .nav-link.active {
    background-color: #ebf8ff !important;
    color: #2b6cb0 !important;
    border-left: 3px solid #3498db;
}

/* Treeview styles for expandable menus */
.nav-treeview {
    background-color: #f8fafc;
    border-radius: 6px;
    margin: 5px 5px;
}

.nav-treeview > .nav-item > .nav-link {
    padding: 8px 10px 8px 30px !important;
    color: #718096;
    font-size: 0.9rem;
}

.nav-treeview > .nav-item > .nav-link:hover {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding-left: 35px !important;
}

/* Brand link styling */
.brand-link {
    background: #2b6cb0 !important;
    border-bottom: 1px solid #2c5282 !important;
}

.brand-link:hover {
    background: #2c5282 !important;
}

/* User panel styling */
.user-panel {
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 15px 10px !important;
}

/* Sidebar headers */
.nav-header {
    padding: 10px 15px 5px 15px;
    font-weight: 600;
    color: #2b6cb0 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.main-sidebar .nav-link {
    margin: 2px 8px;
    padding: 10px 12px !important;
    transition: all 0.2s ease;
}

.main-sidebar .nav-link:hover {
    background-color: #ebf8ff !important;
    padding-left: 15px !important;
}

.main-sidebar .nav-link.active {
    background-color: #ebf8ff !important;
    color: #2b6cb0 !important;
    border-left: 3px solid #3498db;
}

.main-sidebar .nav-header {
    padding: 10px 15px 5px 15px;
}

.main-sidebar .nav-treeview .nav-link {
    padding-left: 50px !important;
}

.main-sidebar .nav-treeview .nav-link:hover {
    background-color: #f7fafc !important;
    padding-left: 55px !important;
}

/* Brand link */
.brand-link {
    background: #2b6cb0 !important;
    border-bottom: 1px solid #2c5282 !important;
}

.brand-link:hover {
    background: #2c5282 !important;
}

/* User panel */
.user-panel {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* AdminLTE Sidebar Toggle Compatibility */
.sidebar-mini.sidebar-collapse .main-sidebar {
    width: 4.6rem !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .main-sidebar .brand-text,
.sidebar-mini.sidebar-collapse .main-sidebar .user-panel > .info span,
.sidebar-mini.sidebar-collapse .main-sidebar .nav-header {
    display: none;
}

.sidebar-mini.sidebar-collapse .main-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .main-sidebar .nav-header {
    visibility: hidden;
}

.sidebar-mini.sidebar-collapse .main-sidebar:hover {
    width: 250px !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-link p,
.sidebar-mini.sidebar-collapse .main-sidebar:hover .brand-text,
.sidebar-mini.sidebar-collapse .main-sidebar:hover .user-panel > .info span,
.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-header {
    display: block;
    visibility: visible;
}

/* Content wrapper adjustment for sidebar toggle */
.sidebar-mini.sidebar-collapse .content-wrapper,
.sidebar-mini.sidebar-collapse .main-footer,
.sidebar-mini.sidebar-collapse .main-header {
    margin-left: 4.6rem;
}

/* Hover effect for collapsed sidebar */
.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-link {
    padding-left: 12px;
}

.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-link:hover {
    padding-left: 15px;
}

/* Custom header styling */
.header-welcome {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 20px 0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Springboard grid styling */
.springboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.springboard-item {
    background: white;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eaeaea;
}

.springboard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
}

.springboard-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.springboard-title {
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    color: #333;
}

/* Color variations for different modules */
.bg-procurement { background: linear-gradient(135deg, #3498db, #2980b9); }
.bg-project { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.bg-financial { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.bg-inventory { background: linear-gradient(135deg, #f39c12, #d35400); }
.bg-hr { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.bg-planning { background: linear-gradient(135deg, #1abc9c, #16a085); }
.bg-reporting { background: linear-gradient(135deg, #34495e, #2c3e50); }
.bg-document { background: linear-gradient(135deg, #e67e22, #d35400); }

/* Top navigation styling */
.top-nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-btn {
    background: none;
    border: none;
    color: #4a5568;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.nav-icon-btn:hover {
    background-color: #edf2f7;
    color: #2d3748;
}

.badge-top {
    position: absolute;
    top: -3px;
    right: 0px;
    font-size: 10px;
}

/* Navigator sidebar styling */
.navigator-menu {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.navigator-category {
    margin-bottom: 15px;
}

.navigator-category h6 {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

.navigator-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigator-links li {
    margin-bottom: 5px;
}

.navigator-links a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 6px;
    transition: all 0.2s;
}

.navigator-links a:hover {
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.navigator-links i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Card styling */
.card-module {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card-module:hover {
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .springboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }
    
    .header-welcome h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .springboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-nav-icons {
        gap: 10px;
    }
    
    .nav-icon-btn {
        font-size: 16px;
        padding: 3px;
    }
}

/* Custom scrollbar */
.navigator-menu::-webkit-scrollbar {
    width: 6px;
}

.navigator-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.navigator-menu::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

.navigator-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Dashboard counters styling */
.small-box {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
}

.small-box:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}

/* Profile info on right side */
.profile-section {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info {
    text-align: right;
}

.profile-name {
    font-weight: 600;
    color: #2d3748;
}

.profile-role {
    font-size: 0.85rem;
    color: #718096;
}

/* Additional styling for Oracle Fusion Cloud-inspired design */

/* Enhanced welcome header */
.welcome-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
}

/* Module cards with enhanced styling */
.module-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.module-card-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.module-card-body {
    padding: 20px;
}

/* Enhanced springboard items - Oracle Fusion Style */
.springboard-item {
    background: white;
    border-radius: 50%; /* Circular shape */
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #edf2f7;
    height: 140px;
    width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Center the item */
    position: relative;
}

.springboard-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
    border-color: #cbd5e0;
}

.springboard-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%; /* Circular shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.springboard-title {
    font-weight: 500;
    font-size: 13px;
    margin-top: 8px;
    color: #2d3748;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Springboard grid with 4x3 layout */
.springboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* As requested in requirements */
    gap: 30px;
    margin-top: 20px;
}

/* Welcome screen styling */
.welcome-screen {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}

/* Info tiles (dashboards) styling */
.info-tile-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-tile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.info-tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-tile-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
}

.info-tile-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* Profile info on right side */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 10px;
}

.profile-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.profile-role {
    font-size: 0.9rem;
    color: #718096;
}

.user-avatar {
    display: flex;
    justify-content: flex-end;
}

/* Color variations for different modules - Oracle Fusion Style */
.bg-procurement { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.bg-product { background: linear-gradient(135deg, #10b981, #059669); }
.bg-financial { background: linear-gradient(135deg, #ef4444, #dc2626); }
.bg-sales { background: linear-gradient(135deg, #f97316, #ea580c); }
.bg-hr { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.bg-inventory { background: linear-gradient(135deg, #eab308, #ca8a04); }
.bg-supplier { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.bg-project { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-reporting { background: linear-gradient(135deg, #64748b, #475569); }
.bg-document { background: linear-gradient(135deg, #f97316, #c2410c); }
.bg-quality { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-analytics { background: linear-gradient(135deg, #06b6d4, #0891b2); }

/* Dashboard metrics styling */
.metric-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2b6cb0;
    margin: 10px 0;
}

.metric-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3498db;
}

/* Navigation sidebar enhancements */
.navigator-menu {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    height: fit-content;
}

.navigator-category {
    margin-bottom: 20px;
}

.navigator-category h6 {
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ebf8ff;
    font-size: 0.95rem;
}

.navigator-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigator-links li {
    margin-bottom: 8px;
}

.navigator-links a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.navigator-links a:hover {
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding-left: 15px;
}

.navigator-links i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #3498db;
}

/* Top navigation bar enhancements */
.main-header.navbar {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

.navbar-nav .nav-link {
    color: #4a5568 !important;
}

.navbar-nav .nav-link:hover {
    color: #2b6cb0 !important;
}

/* Brand link styling */
.brand-link {
    background: #2b6cb0 !important;
}

.brand-text {
    color: white !important;
    font-weight: 600;
}

/* Content wrapper enhancements */
.content-wrapper {
    background-color: #f5f7fa !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .springboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .greeting-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .springboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .springboard-item {
        height: 120px;
        width: 120px;
        padding: 20px;
    }
    
    .springboard-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .greeting-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .springboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .springboard-item {
        height: 110px;
        width: 110px;
        padding: 15px;
    }
    
    .springboard-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .springboard-title {
        font-size: 12px;
    }
    
    .welcome-section {
        padding: 15px;
    }
    
    .greeting-text {
        font-size: 1.5rem;
    }
    
    .profile-info {
        align-items: flex-start;
    }
    
    .user-avatar {
        justify-content: flex-start;
    }
}