/* Rekentools Styles */
.tool-card {
    grid-column: span 1;
    /* Default to 1 column */
    /* Allow card to be wider if needed for side-by-side */
    max-width: 100%;
}

/* Make the tool card span 2 columns if grid allows, to give space for side-by-side */
@media (min-width: 992px) {
    .tool-card {
        grid-column: span 2;
    }
}

.tool-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .tool-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .tool-input-section {
        flex: 1;
        /* Equal width for input section */
    }

    .tool-results-section {
        flex: 1;
        /* Take remaining space */
        margin-top: 0 !important;
        /* Override inline style if any */
        border-left: 1px solid #eee;
        padding-left: 30px;
    }
}

.tool-content {
    margin-top: 20px;
    text-align: left;
}

.radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    /* Override default label margin */
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    accent-color: var(--accent-color);
    width: auto;
    /* Override full width */
}

.results-block {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.result-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-actions {
    display: flex;
    align-items: center;
}

.result-value {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 10px;
}

.copy-btn {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.copy-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Config Card Style (shared) */
.config-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.config-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}
.file-drop-area {
    position: relative;
    overflow: hidden;
    border: 2px dashed #ccc;
    background-color: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-drop-area:hover {
    background-color: #e3f2fd;
    border-color: #2196F3;
}

.file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    display: block;
}

.file-msg {
    font-weight: 500;
    color: #555;
    pointer-events: none;
    z-index: 5;
}

/* Bullion Chart Specifics */
.bullion-chart-container {
    height: 350px;
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    /* Optional: om de grens te zien */
    border-radius: 4px;
}

/* Random Suggestion Card */
.desktop-only-suggestions {
    margin-top: 50px;
}

.suggestion-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.suggestion-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.suggestion-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.suggestion-arrow {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.suggestion-card:hover .suggestion-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Hide on Mobile */
@media (max-width: 767px) {
    .desktop-only-suggestions {
        display: none !important;
    }
}