/* =====================================================
   GLOBAL LAYOUT
===================================================== */

html, body {
    height: 100%;
    margin: 0;    
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
}

body {
    display: flex;
    flex-direction: column;
    
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.main-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}


/* =====================================================
   HEADER AND FOOTER LAYOUT
===================================================== */

.site-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, #00334d, #005577);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-title {
    justify-self: center;
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.header-left {
    justify-self: start;
    display: flex;
    align-items: center;
}

.header-left img {
    height: 60px;  
    width: auto;
}

.tagline {
    font-size: 12px;
    opacity: 0.8;
}

.header-nav {    
    display: flex;
    gap: 18px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.15);
}

.site-footer {
    background-color: #00334d;
    color: white;
    padding: 20px;
    
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}


/* =====================================================
   HOME PAGE (DASHBOARD CARDS)
===================================================== */

/* Card container */
.tool-card {
    display: block;
    width: 360px;
    text-decoration: none;
    color: inherit;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image */
.tool-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Text area */
.card-text {
    padding: 15px;
}

.card-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.card-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* =====================================================
   HOME PAGE (DIACLAIMER SECTION)
===================================================== */

.disclaimer-section {
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 10px;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
    text-align: center;    
}

.disclaimer-section h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.disclaimer-section p {
    font-size: 0.9rem;
    color: #555;
    max-width: auto;
    margin: 0 auto;
    line-height: 1.5;
}

/*mini on atterberg page*/

.disclaimer-mini {
    font-size: 0.85rem;
    color: #777;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* =====================================================
   ATTERBERG / PLOT PAGE
===================================================== */

/* Plot key container */
.plot-key-container {
    display: flex;    
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Chart styling */
#chart {
    flex: 3 1 600px;
    height: 600px;
    width: 100%;
    min-width: 0;
    max-width: 900px;
}

/* For stlying of the key box right of the chart */
.legend-box {
    flex: 2 1 260px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 18px 20px;
    margin-left: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.legend-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.legend-box ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.legend-box li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.legend-box li b {
    color: #2c3e50;
    font-weight: 600;
}

.references-section ul {
    padding-left: 20px;
    margin: 0;
}

.references-section li {
    margin-bottom: 6px;
}

/*text above atterberg input table*/
.input-instruction {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

/* =====================================================
   TABLE STYLING
===================================================== */

.data-table {
    margin: auto;
    border-collapse: collapse;
    background-color: white;
}

th {
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 6px 8px;
    border: 1px solid #ccc;
}

td {
    padding: 4px 6px;
    border: 1px solid #ccc;
    text-align: center;
}

#table-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.handsontable {
    height: 100%;
}

table {
    margin: auto;
}

/* =====================================================
   FORMS + BUTTONS
===================================================== */

form {
    text-align: center;
}

form label {
    display: block;
    margin-top: 1em;
}

button {
    margin: 20px 0;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

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

.button-bar {
    display: flex;
    gap: 12px;  
    margin-bottom: 15px;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */

#graph_type {
    width: 250px;        
    padding: 8px 12px;   
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;  
    background-color: white;
    margin-top: 20px;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* =====================================================
   INFO BOXES
===================================================== */

.info-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
    width: auto;              
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
}

.info-box h3 {
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    font-size: 16px;
}

