/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed; /* Keeps gradient smooth on long pages */
}

/* --- Form Container (Create/Edit) --- */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

label {
    display: block;
    color: #bbb;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 300;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Focus and Hover */
input:focus, select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* Laravel Validation Error State */
input.is-invalid {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* --- Dashboard / Admin Table --- */
.dashboard-container {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    min-width: 800px;
}

th {
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #00d2ff;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    vertical-align: middle;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* --- Buttons & Badges --- */
button, .add-new {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    color: white;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
}

button:hover, .add-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    filter: brightness(1.1);
}

.btn-action {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 5px;
    background: transparent;
    border: 1px solid;
}

.btn-edit {
    color: #00d2ff;
    border-color: #00d2ff;
}

.btn-edit:hover {
    background: #00d2ff;
    color: #fff;
}

.btn-delete {
    color: #ff4757;
    border-color: #ff4757;
}

.btn-delete:hover {
    background: #ff4757;
    color: #fff;
}

/* Badge System */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: rgba(46, 213, 115, 0.15); color: #2ed573; }
.status-inactive { background: rgba(255, 71, 87, 0.15); color: #ff4757; }

/* Chrome number arrows removal */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-size: 1rem;
    cursor: pointer;
    appearance: none; /* Removes default arrow in some browsers */
}

select option {
    background: #302b63; /* Matches your body background */
    color: white;
}