/* 
   Admin form fields, form rows, groups, theme inputs,
   select dropdown styling, desc truncation
  */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label { font-size: 0.75rem; color: #555; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.admin-form .form-group { 
    margin-bottom: 15px; 
}

.admin-form label {
    display: block; 
    color: var(--text-grey); 
    font-size: 0.8rem; 
    margin-bottom: 5px; 
}

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 10px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 6px;
}

.admin-form input, .admin-form select {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    box-sizing: border-box; 
    margin-top: 5px;
}

.admin-form .form-row { display: flex; gap: 15px; }
.admin-form textarea { height: 80px; resize: none; }

.theme-input {
    background: #0a0a0a; border: 1px solid #252525; color: #fff; 
    padding: 14px; border-radius: 10px; outline: none; font-size: 1rem;
}

textarea.theme-input { height: 100px; resize: none; }

.select-theme {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.desc-truncate {
    display: block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-grey);
}

.update-btn .btn-danger {
    flex: 1; 
    height: 45px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px; 
    padding: 0; 
}

/* enrolment warnings*/
.status-box {
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.status-box.warning {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}