/* Name: unic_styles.css */
/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f9f9f9;
}

/* Sector Card Styling */
.sector-card {
    background: #f1f1f1;
    border: 2px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;


}

/* Sector Title */
.sector-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
}


/* Individual Company Card */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px; /* Fixed height */
    width: 300px;  /* Fixed width */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    flex: 1 1 300px;
    text-align: left;

    position: relative; /* Ensures child elements (badges) position correctly */
    overflow: hidden;  /* Prevents the badge from overflowing */
}

/* Card Title */
.card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: bold;
}

/* Stock Symbol & YTD Return */
.card p {
    margin: 5px 0;
    font-size: 14px;
}

/* Highlighted Text */
.highlight {
    font-weight: bold;
    color: #007BFF;
}


.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

/* Keep Buttons at the Bottom */
.button-container {
    display: flex;
    gap: 6px;
    margin-top: auto;
    justify-content: flex-end;
}

        .button-3d {
            width: 30px;
            height: 30px;
            background: linear-gradient(to bottom, #ececec, #d4d4d4);
            border-radius: 10px;
            box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), inset -2px -2px 4px rgba(255, 255, 255, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
            color: black;
            cursor: pointer;
            border: none;
            outline: none;
            transition: all 0.2s ease-in-out;
            position: relative;
            text-decoration: none;
        }
        .button-3d:active {
            box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.3);
            transform: translateY(2px);
        }


/* Round Buttons */
.round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0a2540;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #0a2540;
    width: 10px; /* Reduced from 24px by 20% */
    height: 10px; /* Reduced from 24px by 20% */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Adjusted font size */
    transition: all 0.3s ease;
    line-height: 19px;
    padding: 0;
}

/* Button Hover Effect */
.round-button:hover {
    background-color: #0a2540;
    color: white;
    cursor: pointer;
}

.square-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;  /* Fixed width */
    height: 36px; /* Fixed height */
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 6px; /* Small rounding for square look */
    border: 2px solid #0a2540; /* Dark blue border */
    background-color: #f8f9fa; /* Light gray background */
    color: #0a2540; /* Dark text */
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.square-button:hover {
    background-color: #0a2540; /* Black background on hover */
    color: #FFD700; /* Yellow text on hover */
}

.square-button:active {
    background-color: #FFD700; /* Yellow background when tapped */
    color: #0a2540; /* Dark text when tapped */
}

/* Remove Underlines From Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Underline on Hover */
a:hover {
    text-decoration: underline;
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .card {
        width: 100%;
        height: auto;
    }
}


/* Ensure the rating badge stays inside the card */
.rating-badge {
    position: absolute;  /* Fixes placement relative to the card */
    bottom: 10px;  /* Moves it higher to prevent overlap */
    left: 10px;  /* Aligns it properly */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    display: inline-block;
    z-index: 10;  /* Ensures it appears above other elements */
}
