:root {
    --primary-color: #4a90e2;
    --secondary-color: #67c23a;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button , td>button{
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-content: center;
    align-items: center;
}

button:hover {
    background-color: #357abd;
}

.results {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.compound-card {
    border: 1px solid #dcdfe6;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.compound-card:hover {
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--primary-color);
}

.error {
    background-color: #fef0f0;
    color: #f56c6c;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}


.custom-alert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.alert-buttons{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
#alert-message {
 font-weight: bold;
}
@media (max-width: 768px) {
    body, button{
        font-size: x-small;
    }
    
    .container {
        padding: 10px;
    }
    
    .search-box, .results {
        padding: 15px;
    }
}


td button {
    text-align: center;
    display: block;
    margin: 0 auto;
}
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    padding: 10px 0;
    text-align: center;
}

.footer-text {
    color: #666;
    font-size: 12px;
    margin: 2px 0;
}