/* --- General Reset & Base Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif; 
    background-color: #f0f2f5; 
    color: #333; 
    line-height: 1.6; 
    padding: 20px; /* Reduced padding for mobile */
}

/* --- Container: Flexible for Mobile --- */
.container, .dashboard-container { 
    width: 100%;
    max-width: 650px; 
    margin: 20px auto; 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
}

/* --- Form Typography --- */
header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
h1 { font-size: 1.5rem; color: #1a2a3a; margin-bottom: 10px; }
p { font-size: 1rem; color: #555; margin-bottom: 15px; }

/* --- Mobile-Friendly Inputs --- */
.input-group { margin-bottom: 20px; text-align: left; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #444; font-size: 0.95rem; }

input, textarea { 
    width: 100%; 
    padding: 14px; /* Larger tap area */
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    -webkit-appearance: none; /* Removes shadow on iOS */
}

input:focus, textarea:focus { border-color: #3498db; outline: none; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); }

/* --- Buttons: Easy to Tap --- */
.btn { 
    display: inline-block; 
    width: 100%; 
    padding: 16px; 
    border: none; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    cursor: pointer; 
    text-align: center; 
    transition: background 0.2s;
}
.btn-submit { background: #27ae60; color: white; }
.btn-submit:active { background: #1e8449; transform: scale(0.98); }

/* --- Responsive Media Queries --- */
@media screen and (max-width: 600px) {
    body { padding: 10px; } /* Tighten spacing on small screens */
    
    .container {
        padding: 20px;
        margin: 10px auto;
        border-radius: 8px;
    }

    h1 { font-size: 1.3rem; }
    
    /* Tables are hard on mobile - this makes the dashboard scrollable */
    .dashboard-container {
        padding: 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .table-wrapper {
        overflow-x: auto; /* Forces horizontal scroll for the table only */
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px; /* Ensures the table doesn't squash */
    }
}
/* Container for the dashboard list */
.container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse; /* Removes double borders */
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Table Headers */
th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 700;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Table Cells */
td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    color: #444;
}

/* Row Hover Effect */
tr:hover {
    background-color: #fdfdfd;
}

/* Make links (emails) look nice */
td a {
    color: #3498db;
    text-decoration: none;
}

td a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness for Tables */
@media screen and (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    /* Adds horizontal scroll for small screens so the table doesn't break */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}