/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #121212; /* Dark background color */
    color: #ffffff; /* White text color */
    overflow-x: hidden;
}

/* Navbar styles */
.navbar {
    background-color: #121212 !important; /* Ensure navbar background is dark */
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff !important;
}

.nav-link {
    color: #ffffff !important;
    transition: background-color 0.3s ease; /* Smooth hover transition */
    border-radius: 10px;
    padding: 5px 10px;
    margin-left: 20px;  /* Add some padding for better click area */
}

.nav-link:hover {
    background-color: #333333; /* Darken on hover */
}

.dropdown-menu {
    background-color: #333333;
    border: none;
    border-radius: 10px;
}
.dropdown-menu .dropdown-item {
    color: #ddd;
    padding: 10px 20px;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #444444;
    color: #fff;
}

.navbar .user-info {
    display: flex;
    align-items: center;
}

.navbar .user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Header styles */
header {
    background-color: #121212;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-left: 350px;
}

#nav {
    margin-top: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 26px; /* Increased padding to make the button 20px larger in height and width */
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 180px; /* Adjusted to make the button wider */
    border-radius: 20px;
    margin-left: 750px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 20%;
    border-radius: 20px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    margin-left: 750px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
    max-height: 500px; /* Adjust as needed */
    transition: max-height 0.9s ease-in;
}


/* Main content area */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-left: -280px;
}

.date {
    font-size: 14px;
    color: #6c757d;
    margin-left: -280px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: #218838;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: 50px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #333333; /* Dark background color */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #ffffff; /* White text color */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #444444; /* Slightly lighter background color on hover */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover button {
    background-color: #0056b3;
}

/* Header styles */
h1 {
    background-color: #333333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}


/* Card styles */
.card {
    background-color: #333333;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.card-header {
    background-color: #444444;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
}

.card-body{
    padding: 20px;
}

/* Table styles */
.table {
    color: #ffffff;
}

.table th, .table td {
    color: #ffffff;
    border-top: 1px solid #444444;
}

.table th {
    background-color: #555555;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Chart container styles */
.chart-container {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

/* Form styles */
.form-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-control {
    background-color: #1e1e1e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px;
}

.form-control:focus {
    background-color: #121212
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
}

/* Adjustments for Buy/Sell container */
.buy-sell-container {
    margin-top: 20px; /* Adjust this value to move it higher or lower */
    padding: 20px;
    background-color: #333333;
    border-radius: 10px;
}

.equity, .cash {
    font-size: 24px;
}

footer{
    background-color: #121212;
    margin-top: 5em;
}

.joinSection,.footerlinksContainer{
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 1em;
}

.joinSection{
    display: flex;
    align-items: center;
    padding: 3em 0em;
}

.joinSection .joinDesc{
    width: 80%;
}

.joinSection button{
    height: auto;
}



.footerlinksContainer{
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    justify-content: space-between;
    padding-top: 5em;
    border-top: 1px solid #1e1e1e;
}

.footersociallinkContainer{
    margin-top: 1em;
}

.footerAboutus .sociallinkContainer{
    justify-content: flex-start;
}

.footerlink{
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.linkTitle{
    font-size: 1.5rem;
    margin-bottom: .5em;
}

.footerlink a{
    color: #ffffff;
    margin-bottom: 1em;
    transition: all .5s ease-in-out;
}

.footerlink a:hover{
    transform: translateX(10px);
}

.footerCopyright{
    background-color: #121212;
    padding: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
}

.footerCopyright p{
    text-align: center;
}

.developedBy{
    font-weight: bold;
    color: #ffffff;
}

@media screen and (min-width:700px) {
    .footerlinksContainer{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-row .col {
        margin-bottom: 10px;
    }
}
