* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 100%;
    padding: 15px;
    margin: 0 auto;
}

.title {
    text-align: center;
    margin-bottom: 20px;
    color: #ff2d2d;
    font-size: 22px;
    padding: 10px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Two-column layout for larger screens */
@media (min-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-item-full {
        grid-column: span 2;
    }
}

.form-item {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 16px; /* Larger for mobile */
    -webkit-appearance: none; /* Remove default styling on iOS */
}

input[readonly] {
    background: #333;
}

.btn {
    background: #ff2d2d;
    color: #fff;
    padding: 15px;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
}

.btn-secondary {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #333;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Focus styles for better accessibility */
input:focus, select:focus {
    outline: none;
    border-color: #ff2d2d;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
}

/* Make sure the form fits on one screen */
@media (max-height: 700px) {
    .container {
        padding: 10px;
    }
    
    .form-grid {
        gap: 10px;
    }
    
    input, select {
        padding: 10px;
    }
}

/* =======================
   TABLE LIST PAGE STYLING
   ======================= */

.page-title {
    text-align: left;
    font-size: 22px;
    color: #ff2d2d;
    margin-bottom: 10px;
    padding-left: 10px;
}

/* Scrollable table for mobile */
.table-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 10px;
    margin-top: 10px;
}

/* Table design */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

th {
    background: #222;
    color: #ff2d2d;
    font-weight: bold;
}

/* Blue action links */
table a {
    color: #4da6ff;
    font-weight: bold;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* Button for Add New Entry */
.btn {
    background: #ff2d2d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    margin-top: 10px;
}

/* Add these to your existing style.css */
.positive {
    color: #28a745;
    font-weight: bold;
}
.negative {
    color: #dc3545;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}