/* Stocks cards styles */
.stocks-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 10px;
}

.stock-card {
    background-color: #232323;
    border-radius: 8px;
    border-left: 4px solid #90ee90;
    box-shadow: 0 2px 8px #0002;
    padding: 18px 20px;
    min-width: 220px;
    max-width: 300px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.stock-card-title {
    font-size: 18px;
    color: #90ee90;
    font-weight: bold;
    margin-bottom: 10px;
}

.stock-card-info {
    font-size: 16px;
    color: #e0e0e0;
}

.stock-card-profit {
    color: #90ee90;
    font-weight: bold;
    font-size: 18px;
}
/* Reset and base styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
}

body{
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 15px;
}

/* Typography */
h2{
    margin: 10px;
    padding: 10px;
    background-color: #2a2a2a;
    border-left: 4px solid #90ee90;
    border-radius: 4px;
    color: #90ee90;
    font-size: 16px;
}

/* Links */
a{
    color: #90ee90;
    text-decoration: none;
}

a:hover{
    color: #b0ffb0;
    text-decoration: underline;
}

/* Tables */
table{
    margin: 10px;
    border-collapse: collapse;
    width: calc(100% - 20px);
}

th, td{
    border: 1px solid #444;
    padding: 7px 12px;
    text-align: left;
    font-size: 16px;
}

th{
    background-color: #2a2a2a;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    color: #e0e0e0;
}

th:hover{
    background-color: #3a3a3a;
}

tr:nth-child(even){
    background-color: #222;
}

tr:nth-child(odd){
    background-color: #1a1a1a;
}

/* Column toggle */
.column-toggle{
    margin-left: 5px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
}

.column-toggle:hover{
    opacity: 1;
}

.hidden-column{
    display: none;
}

/* Buttons */
button{
    padding: 6px 14px;
    background-color: #90ee90;
    color: #1a1a1a;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: monospace;
    font-size: 15px;
}

button:hover{
    background-color: #b0ffb0;
}

/* Status bar and messages */
#statusBar{
    margin: 10px;
    padding: 8px;
    background-color: #2a2a2a;
    border-radius: 4px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#message{
    width: 100%;
    margin-top: 5px;
    color: #90ee90;
    font-size: 11px;
}

.warning-message{
    background-color: #3a2a1a;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 8px;
    border-radius: 4px;
}

.warning-message a{
    color: #ffaa6b;
    text-decoration: underline;
}

/* Back to home link */
.back-link{
    text-align: center;
    margin-top: 10px;
}

/* Bounty Tool Styles */
.filter-container{
    margin: 10px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 4px;
}

.filter-section{
    background-color: #1a1a1a;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 3px solid #90ee90;
}

.filter-section:last-of-type{
    margin-bottom: 12px;
}

.filter-section-title{
    margin: 0 0 10px 0;
    padding: 0;
    color: #90ee90;
    font-size: 13px;
    font-weight: bold;
    background: none;
    border: none;
}

.filter-row{
    display: flex;
    gap: 15px;
}

.filter-row .filter-group{
    flex: 1;
    margin-bottom: 0;
}

.filter-group{
    margin-bottom: 15px;
}

.filter-group:last-child{
    margin-bottom: 0;
}

.filter-actions{
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #444;
}

.filter-group label{
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 12px;
}

.filter-group input[type="range"]{
    width: 100%;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.filter-group input[type="range"]::-webkit-slider-thumb{
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #90ee90;
    cursor: pointer;
    border-radius: 50%;
}

.filter-group input[type="range"]::-moz-range-thumb{
    width: 16px;
    height: 16px;
    background: #90ee90;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

#loadAllBtn{
    padding: 8px 16px;
    font-size: 12px;
    margin-right: 10px;
}

#loadingStatus{
    color: #90ee90;
    font-size: 11px;
}

.stats-container{
    margin: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-box{
    flex: 1;
    min-width: 150px;
    background-color: #2a2a2a;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #90ee90;
}

.stat-label{
    display: block;
    color: #b0b0b0;
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-value{
    display: block;
    color: #90ee90;
    font-size: 24px;
    font-weight: bold;
}

/* Index page styles */
.index-body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    font-size: 14px;
}

.container{
    max-width: 600px;
    width: 100%;
}

h1{
    text-align: center;
    color: #90ee90;
    margin-bottom: 30px;
    font-size: 28px;
}

.tools-list{
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
}

.tool-item{
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tool-item:hover{
    background-color: #333;
    border-color: #90ee90;
}

.tool-item:last-child{
    margin-bottom: 0;
}

.tool-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-link:hover{
    text-decoration: none;
}

.tool-title{
    color: #90ee90;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    transition: text-decoration 0.3s ease;
}

.tool-link:hover .tool-title{
    text-decoration: underline;
}

.tool-description{
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
}

.footer{
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 12px;
}

.api-key-section{
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.api-key-section h2{
    font-size: 16px;
    margin: 0 0 15px 0;
    padding: 0;
    background: none;
    border: none;
}

.api-key-form{
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.api-key-input{
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 5px;
    font-family: monospace;
    font-size: 13px;
}

.api-key-input:focus{
    outline: none;
    border-color: #90ee90;
}

.api-key-btn{
    padding: 8px 16px;
    background-color: #90ee90;
    color: #1a1a1a;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.api-key-btn:hover{
    background-color: #b0ffb0;
}

.api-key-status{
    width: 100%;
    margin-top: 10px;
    color: #90ee90;
    font-size: 12px;
}

.api-key-status.error{
    color: #ff6b6b;
}

/* Help page styles */
.help-body{
    padding: 20px;
}

.help-body h1{
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
}

.help-body h2{
    margin: 20px 0 10px 0;
    padding: 10px;
    background-color: #2a2a2a;
    border-left: 4px solid #90ee90;
    border-radius: 4px;
    color: #90ee90;
    font-size: 16px;
}

.help-body p{
    margin-bottom: 8px;
    line-height: 1.3;
}

.help-body ol{
    margin-left: 20px;
    margin-bottom: 10px;
}

.help-body li{
    margin-bottom: 5px;
    line-height: 1.3;
}

.help-body ul{
    margin-left: 20px;
    margin-bottom: 10px;
}

.help-body h3{
    margin-top: 15px;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    color: #b0ffb0;
}

.help-body strong{
    color: #90ee90;
}
