/* Import Google Fonts for a playful and modern look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Nunito:wght@300;400;600;700&display=swap');

/* Global Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(90deg, #2c3e50, #34495e) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: #ffffff !important;
    margin: 0 10px;
    border-radius: 20px;
    padding: 10px 15px !important;
}

.navbar-nav .nav-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Stock Cards */
/* Lines 39-47: Update Stock Cards base style */
.stock-card {
    background: linear-gradient(145deg, #1a2634, #2c3e50);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Company-specific gradients with more contrast */
.stock-card[data-company-id="1"] {  /* ChocoCrave */
    background: linear-gradient(145deg, #ff6b6b, #c41e3a);
}

.stock-card[data-company-id="2"] {  /* RoboPets */
    background: linear-gradient(145deg, #70a1ff, #1e56c4);
}

.stock-card[data-company-id="3"] {  /* ZoomBoom */
    background: linear-gradient(145deg, #ffc371, #ff7b00);
}

.stock-card[data-company-id="4"] {  /* EcoDreams */
    background: linear-gradient(145deg, #43f4b2, #10ac64);
}

.stock-card[data-company-id="5"] {  /* Glitz & Glam */
    background: linear-gradient(145deg, #c377ff, #6d23c4);
}

/* Update button styles for better contrast */
.stock-card button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stock-card button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Lines 54-63: Update text styles for better contrast */
.stock-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}

.stock-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Shareholder Cards */
.shareholder-card {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.shareholder-card .card-title {
    color: #ffffff;
}

.shareholder-card .card-text {
    color: #ffffff;
}

/* Leader Board Styling */
.leader-board-container {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #ffffff;
}

.leader-board-container h2 {
    color: #ffffff;
}

.progress {
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
    color: #000000;
    font-weight: 600;
}

/* Modal Styling */
.modal-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
}

.modal-custom-input {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #ffffff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.modal-custom-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.modal-custom-input option {
    background: #2980b9;
    color: #ffffff;
}

.total-cash {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 20px 0;
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Company Selection */
.company-circle {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.company-selection {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.company-circle {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.company-circle:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
}

.company-stocks-count {
    background-color: #e74c3c;
    color: #ffffff;
}

/* Placeholder Styling */
.placeholder {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px;
}

/* Company Logos */
.company-logo {
    color: #ffffff;
    margin-right: 5px;
}

/* Media Queries */
@media (max-width: 768px) {
    .stock-card, .shareholder-card {
        margin-bottom: 15px;
    }
}



.company-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stock-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stock-badge .emoji {
    font-size: 1.1rem;
}

.stock-badge .count {
    font-weight: 500;
}





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

.leaderboard-item {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

/* Gold - 1st Place */
.leaderboard-item-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Silver - 2nd Place */
.leaderboard-item-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.05));
    border: 2px solid #C0C0C0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.2);
}

/* Bronze - 3rd Place */
.leaderboard-item-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.05));
    border: 2px solid #CD7F32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.2);
}

.leaderboard-rank {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 12px;
    min-width: 24px;
}

.leaderboard-info {
    flex-grow: 1;
}

.leaderboard-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.leaderboard-worth {
    color: #a8b3cf;
    font-size: 0.9rem;
}



.lottie-container {
    width: 100%;
    height: 80px !important;
    overflow: hidden;
    margin: 10px 0;
    opacity: 0.4;
}

.lottie-container svg {
    width: 100%;
    height: 100%;
}

.lottie-container path {
    stroke: #2ecc71;
    stroke-width: 2;
    fill: none;
    transition: d 1s ease;
}