/* ==========================
   General Body & Layout
=========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin: 0;
    padding: 20px;
    color: #333;
}

h2, h3 {
    font-size: 2rem;
    text-align: center;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #9b00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    margin-bottom: 20px;
}

/* Gradient Shine Animation */
@keyframes shine {
    0% { background-position: -500px; }
    100% { background-position: 500px; }
}

/* ==========================
   Buttons
=========================== */
button, a {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

button {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
}

button:hover {
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.6);
    transform: translateY(-2px);
}

a {
    background: linear-gradient(135deg, #1fa2ff, #12d8fa, #a6ffcb);
    color: #fff;
}

a:hover {
    box-shadow: 0 0 15px rgba(18, 216, 250, 0.6);
    transform: translateY(-2px);
}

/* ==========================
   Forms
=========================== */
form {
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 1rem;
}

input[type="file"] {
    padding: 5px;
}

input:disabled, select:disabled, textarea:disabled {
    background: #f0f0f0;
}

/* ==========================
   Tables
=========================== */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even) {
    background: rgba(245, 245, 245, 0.7);
}

tr:hover {
    background: rgba(255, 197, 197, 0.3);
}

/* ==========================
   Checkbox group
=========================== */
.checkbox-group label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

/* ==========================
   Responsive
=========================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    table, form {
        width: 100%;
        font-size: 0.9rem;
    }
    
    h2, h3 {
        font-size: 1.5rem;
    }
}

.form-group { margin-bottom: 15px; }
.form-control { width: 95%; padding: 8px; }
.checkbox-group { margin-left: 5px; }
.file-upload { margin-top: 5px; }

button {
    padding: 8px 15px;
    margin: 5px;
    cursor: pointer;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background: white;
    width: 400px;
    margin: 8% auto;
    padding: 20px;
    border-radius: 8px;
}
.readonly-field {
    background: #eee !important;
    cursor: not-allowed;
}

  /* Message Box */
        #messageBox {
            display: none;
            padding: 12px 18px;
            margin: 15px auto;
            max-width: 600px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
        }
        #messageBox.success { background: #d4edda; color: #155724; border-left: 5px solid #28a745; }
        #messageBox.error   { background: #f8d7da; color: #721c24; border-left: 5px solid #dc3545; }