/* Global body styling for the application */
body { 
    margin: 0;
    /* Background is handled in layouts/app.blade.php using asset() for production reliability */
    background-size: cover; /* Cover the entire screen */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white; 
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* Back to column for top navbar */
}

.min-height-screen {
    min-height: 100vh;
}

/* Primary gradient utility */
.bg-primary-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
}

/* Horizontal Top Navbar Styles */
.navbar-custom {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    margin-top: 10px;    /* 10px margin on top */
    margin-bottom: 10px; /* 10px margin on bottom */
    z-index: 1000;
}

/* Main Content Area adjustment */
.main-wrapper {
    flex: 1;
    min-height: calc(100vh - 80px); /* Adjusted for navbar margins */
    display: flex;
    flex-direction: column;
}

/* Navbar icon styling */
.nav-icon-link {
    color: white !important; /* Icon color is white */
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Set the size of Feather icons in navbar */
.nav-icon-link svg {
    width: 24px !important;  /* Standard 24px size */
    height: 24px !important;
}

.nav-icon-link:hover {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.nav-icon-link.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
}

/* Card transparency and standard styling */
.card {
    background: rgba(0,0,0,0.4) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* Informational text colors */
.text-dark, .text-secondary, .text-muted {
    color: rgba(255,255,255,0.8) !important;
}
.text-success {
    color: #2ecc71 !important;
}
.text-primary {
    color: #3498db !important;
}
.text-warning {
    color: #f1c40f !important;
}
.text-white-50 { 
    color: rgba(255,255,255,0.5) !important; 
}

/* Portfolio-specific company card styling */
.company-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.1) !important;
}

.company-card.highlighted {
    border: 2px solid #f1c40f !important;
    background: rgba(241, 196, 15, 0.2) !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
}

.company-card.processing {
    opacity: 0.7;
    pointer-events: none;
}

/* Margin for last analysis row in portfolio table */
.portfolio-analysis-cell {
    padding-bottom: 20px !important;
}

/* Group hover for portfolio records */
.portfolio-group {
    background-color: rgba(255, 255, 255, 0.2) !important; /* 20% transparent white background */
    border: 1px solid rgba(128, 128, 128, 0.5); /* Rounded edge gray frame */
    border-radius: 12px;
    margin-top: 10px; /* 10px upper margin */
    color: black !important; /* Change white text to black */
    transition: background-color 0.3s ease;
    cursor: default;
}

.portfolio-group:hover {
    background-color: rgba(255, 255, 255, 0.3) !important; /* 30% transparent white hover */
}
