* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe, #f5f3ff, #ffe4e6);
    color: #1f2937;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.top-nav a {
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.top-nav a:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e3a8a;
    font-size: 36px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

table th {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    color: white;
    padding: 16px;
    text-align: left;
    font-size: 15px;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

table tr:nth-child(even) {
    background: #f8fafc;
}

table tr:hover {
    background: #eef2ff;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

label {
    display: block;
    margin-bottom: 18px;
    font-weight: bold;
    color: #374151;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    background: #f9fafb;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 13px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}

button:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.action-links a {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 6px;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 10px;
    color: white;
}

.action-links a:first-child {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.action-links a:last-child {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.success {
    max-width: 700px;
    margin: 0 auto 18px auto;
    background: #dcfce7;
    color: #166534;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: bold;
}

.error {
    max-width: 700px;
    margin: 0 auto 18px auto;
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: bold;
}

.search-box {
    max-width: 700px;
    margin: 0 auto 25px auto;
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .top-nav a {
        text-align: center;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .search-box {
        flex-direction: column;
    }
}