body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI" , Roboto, sans-serif; 
    margin: 30px; 
    background: #f5f7fb; color: #333; 
}

textarea { 
    width: 100%; height: 150px; 
    font-family: monospace; 
    border: 1px solid #ccd4e0; 
    border-radius: 4px; 
    padding: 10px;
    box-sizing: border-box; 
}

/* this grid creates 2 columns, with the second twice as wide as the first. */
.grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 20px; 
    margin-top: 15px; 
}

/* card contains style used in the columns and output section */
.card {
    background: white; 
    padding: 20px; 
    border-radius: 6px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    border: 1px solid #e1e6ef;
}

/* # notation is for IDs whereas . notation is for classes. IDs can only be used once per page but are useful due to document.getElementById('id') function*/
#sqlInput { 
    width: 100%; 
    height: 60px; 
    font-family: monospace; 
    font-size: 14px; 
}

/* button and table are types. they target every <button> and <table> on the page. buttons and pages can additionally have a class and an id */
/* in the case of conflicting styles, ID is highest priority, followed by classes, then types */
button {
    background: #0066cc; 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold;
}

button:hover {
    background: #0052a3
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px; 
    background: white; 
}

th, td { 
    border: 1px solid #ccd4e0; 
    padding: 8px 12px; 
    text-align: left; 
    font-size: 13px; 
} 
    
th {
    background: #f0f4f8; 
    font-weight: 600; 
}

/* key badges are the style for displaying column names (small teal oval with blue text) */
.key-badge { 
    display: inline-block; 
    background: #e6fefa; 
    color: #0066cc; 
    padding: 3px 8px; 
    border-radius: 12px; 
    margin: 3px; 
    font-size: 12px; 
    font-family:  monospace;
}

/* Toast notes are for displaying small success/error messages */
.toast {
    padding: 12px 18px; 
    border-radius: 6px; 
    margin-bottom: 10px;
    color: white; 
    font-size: 14px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideIn 0.5s ease-out;
}

.toast.success { 
    background: #2b9348; 
}

.toast.error { 
    background: #d64545; 
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(20px); 
    } to { 
        opacity: 1; 
        transform: translateX(0); 
    } 
}

#feedbackBtn {
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 999;
    border-radius: 24px; 
    padding: 10px 18px; 
    font-size: 13px;
}

#feedbackModal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.4); 
    z-index: 1000; 
    align-items: center; 
    justify-content: center;
}

#feedbackModal .modal-box {
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    width: 320px; 
    max-width: 90%;
}

#feedbackModal textarea {
    width: 100%; 
    height: 100px; 
    font-family: inherit; 
    padding: 8px; 
    box-sizing: border-box;
    border: 1px solid #ccd4e0; 
    border-radius: 4px;
}