/* ============================= */
/* GENERAL STYLES (Light Mode ) */
/* ============================= */

body {
    background-color: #f4f7fa; /* Autodesk-style light gray */
    color: #222;
    font-family: "Arial", sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
}

/* ============================= */
/* TEXT STYLES (Maintaining Alignment) */
/* ============================= */

p, pre, h1, h2, h3, td, tr {
    color: #222;
    text-align: center; /* Matches default alignment */
}

h1, h2, h3 {
    margin: 5px 0; /* Matches original spacing */
    font-weight: 600;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 2px;
    background-color: #f4f7fa;
    margin-top: 20px;
    font-size: 0.9em;
}

/* Links */
a:link, a:visited, a:active {
    color: #0072ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ============================= */
/* TABLE HEADER (Same Alignment as Default) */
/* ============================= */

.table-header {
    border-collapse: collapse;
    width: 85%;
    margin: 5px auto;
    background-color: #313030;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #d6dee5;
    color: #fff;
}

/* Remove borders & override default td styles */
.table-header td {
    background-color: transparent;
    border: none;
    padding: 10px;
    text-align: left; /* Restored original left alignment */
    
}

/*have a seperate h1 style for the header*/
.table-header h1 {
    color: #ffffff; /* Forces white text inside table-header */
    margin: 0; /* Adjust margins if needed */
}

/* Style the div inside the table-header */
.table-header .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Ensures left alignment */
}

/* Ensure images inside the div align properly */
.table-header .header-right img {
    vertical-align: middle;
    max-height: 30px;
}

/* ============================= */
/* TABLES (Keeping Default Alignment) */
/* ============================= */

table {
    border-collapse: collapse;
    width: 85%;
    margin: 20px auto;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
}

th {
    background: #e3e8ee;
    color: #222;
    font-weight: bold;
    padding: 10px;
}

td, th {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: center; /* Ensures all table content is centered */
}

tr:nth-child(even) {
    background-color: #f8f9fb;
}

/* Adjust table row spacing */
tr {
    margin: 5px;
    padding: 0;
}

.content-table {
    margin-top: 5px;
    margin-bottom: 5px;
}

.content-table tr {
    margin-bottom: 5px;
}

/* ============================= */
/* FORMS & INPUT FIELDS (Matching Alignment) */
/* ============================= */

/* Labels */
label {
    width: 250px;
    font-weight: bold;
    color: #0072ff;
    text-align: right; /* Matches default alignment */
}

/* Input Fields, Textarea, and Select */
textarea, input[type="text"], select {
    flex: 1;
    max-width: 320px;
    background-color: #ffffff;
    color: #222;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px;
    font-family: monospace;
    resize: vertical;
    transition: 0.2s ease-in-out;
}

/* Focus Effects */
input:focus, select:focus {
    border-color: #0072ff;
    outline: none;
    box-shadow: 0 0 8px #0072ff;
}

/* Parameter Layout - Inline Label & Input */
.param {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.param-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Docstring (Light Blue Autodesk Style) */
.doc {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
    margin-left: 260px; /* Matches default spacing */
    max-width: 400px;
    text-align: left;
}

/* ============================= */
/* BUTTONS (Professional Light Mode Styling) */
/* ============================= */

.button-group {
    margin-top: 15px;
}

/* Standard Button Styles */
button, 
input[type="submit"].submit-btn,
button.submit-btn {
    background: #0072ff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: 0.2s ease-in-out;
    margin-top: 10px;
    margin-bottom: 10px;
}

button:hover,
input[type="submit"].submit-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Reset Button */
input[type="reset"].reset-btn,
button.reset-btn {
    background: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 10px;
}

input[type="reset"].reset-btn:hover,
button.reset-btn:hover {
    background: #d43f3f;
    transform: scale(1.05);
}

/* ============================= */
/* LINKS AS BUTTONS */
/* ============================= */

.button-link {
    display: inline-block;
    background: #0072ff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: 0.2s ease-in-out;
}

.button-link:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.button-linkRed {
    display: inline-block;
    background-color: #cc0000;
    color: #FFF !important;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease-in-out;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.button-linkRed:hover {
    background-color: #cc0000;
    transform: scale(1.05);
    text-decoration: none;
}

.button-linkAnimated {
    display: inline-block;
    background-color: #cca700;
    color: #FFF !important;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 5px;
    /* Keep the smooth transition for hover effects */
    transition: transform 0.2s ease-in-out;
    
    /* Add the pulse animation */
    animation: pulse 2s infinite;
}

/* Define the keyframes for the pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Optional: Hover effect for immediate user feedback */
.button-linkAnimated:hover {
    background-color: #cca700;
    text-decoration: none;
    /* The hover effect can override the animation's transform if needed.
       If you want the animation to continue uninterrupted even on hover, 
       you can omit the transform here. */
}


/* ============================= */
/* FORM & FIELDSET STYLES */
/* ============================= */

fieldset {
    background-color: #ffffff;
    border: 1px solid #d6dee5;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: center; /* Matches default */
}

legend {
    color: #0072ff;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
}

/* ============================= */
/* GRID SYSTEM (Dashboard-Like Sections) */
/* ============================= */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
