/* General Reset and Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #333;
    padding: 20px;
}

/* Headings */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #222;
}

/* Container */
.container {
    max-width: 900px;
    margin: auto;
}

/* Form Elements */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

label {
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
}

button, .btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
}

/* Table Styling */
table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

th, td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: left;
}

th {
    background-color: #f1f3f5;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #198754;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #a71d2a;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: #0d6efd;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0638a1;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    form, table {
        font-size: 0.95rem;
    }

    th, td {
        padding: 8px;
    }
}
