/* assets/css/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f172a;
    color: #0f172a;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #000 100%);
    color: #e5e7eb;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.main-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.7));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #e5e7eb;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #22c55e);
    box-shadow: 0 0 12px rgba(94,234,212,0.9);
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.main-nav a {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    color: #cbd5f5;
}

.main-nav a:hover {
    background: rgba(148, 163, 184, 0.1);
    transform: translateY(-1px);
}

/* Layout */
.page-content {
    padding: 2rem 0 3rem;
}

/* Card */
.card {
    background: radial-gradient(circle at top left, rgba(79,70,229,0.25), transparent 45%),
                radial-gradient(circle at bottom right, rgba(16,185,129,0.2), transparent 45%),
                rgba(15,23,42,0.95);
    border-radius: 1.25rem;
    padding: 1.75rem 1.75rem 2rem;
    box-shadow: 0 25px 60px rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.25);
    color: #e5e7eb;
}

.card-form {
    margin: 0 auto;
}

.card-form.small {
    max-width: 440px;
}

.card-thanks {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.card h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.subtitle {
    margin-top: 0;
    margin-bottom: 1.75rem;
    color: #9ca3af;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.9rem;
    color: #cbd5f5;
}

.required {
    color: #f97373;
    margin-right: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="file"],
textarea {
    border-radius: 0.75rem;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.8);
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: #e5e7eb;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

input::file-selector-button {
    border-radius: 999px;
    border: none;
    padding: 0.4rem 0.9rem;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #22c55e);
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.35);
    background: rgba(15,23,42,0.95);
}

textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-link {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #22c55e);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(79,70,229,0.45);
    transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 16px 40px rgba(79,70,229,0.6);
}

.btn-secondary {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.4);
    transition: background 0.2s, border 0.2s;
}

.btn-secondary:hover {
    background: rgba(30,64,175,0.6);
    border-color: rgba(129,140,248,0.9);
}

.btn-link {
    background: transparent;
    color: #a5b4fc;
    padding: 0.2rem 0.4rem;
    box-shadow: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(248,113,113,0.5);
    color: #fecaca;
}

/* Table */
.table-wrapper {
    margin-top: 1.25rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table thead {
    background: rgba(15,23,42,0.98);
}

.data-table th,
.data-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(30,41,59,0.7);
}

.data-table th {
    text-align: right;
    color: #a5b4fc;
    font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.8);
}

.data-table tbody tr:hover {
    background: rgba(30,64,175,0.4);
}

.empty-row {
    text-align: center;
    color: #9ca3af;
}

/* Details */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.details-item.full-width {
    grid-column: 1 / -1;
}

.label {
    font-size: 0.8rem;
    color: #9ca3af;
}

.value {
    font-size: 0.95rem;
    font-weight: 500;
}

.pre-wrap {
    white-space: pre-wrap;
}

/* Card header */
.card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Search form */
.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form input[type="text"] {
    min-width: 220px;
}

/* Footer */
.main-footer {
    border-top: 1px solid rgba(30,41,59,0.9);
    padding: 1rem 0;
    background: rgba(15,23,42,0.95);
    margin-top: 2rem;
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .card {
        padding: 1.25rem 1.1rem 1.6rem;
    }
}
