@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background: #0a0e1a;
    color: #e8eaf0;
    line-height: 1.5;
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Navigation */
.nav {
    background: #0a0e1a;
    border-bottom: 1px solid #1e2a3a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #4a9eff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #e8eaf0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #4a9eff;
}

/* Cards */
.card {
    background: #111827;
    border: 1px solid #1e2a3a;
    border-radius: 12px;
    padding: 2rem;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #8892a4;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #4a9eff;
    color: #0a0e1a;
}

.btn-primary:hover {
    background: #3b8ee6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c63ff;
    color: white;
}

.btn-secondary:hover {
    background: #5d54e6;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #4a9eff;
    color: #4a9eff;
}

.btn-outline:hover {
    background: #4a9eff;
    color: #0a0e1a;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e8eaf0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #1e2a3a;
    border-radius: 8px;
    background: #0a0e1a;
    color: #e8eaf0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a9eff;
}

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

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Messages */
.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    color: #fca5a5;
    margin-bottom: 1.5rem;
}

.success-msg {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    color: #86efac;
    margin-bottom: 1.5rem;
}

.notice-msg {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid #4a9eff;
    border-radius: 8px;
    padding: 1rem;
    color: #93c5fd;
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.progress-bar-wrapper {
    background: #1e2a3a;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    background: #4a9eff;
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #8892a4;
    margin-top: 0.5rem;
}

/* Lock Icon */
.lock-icon {
    color: #8892a4;
    margin-right: 0.5rem;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-item {
    background: #111827;
    border: 1px solid #1e2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.grid-item:hover {
    border-color: #4a9eff;
    transform: translateY(-4px);
}

.grid-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.grid-item p {
    color: #8892a4;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th {
    background: #1e2a3a;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #1e2a3a;
    color: #8892a4;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #1e2a3a;
}

table tr:hover {
    background: #0a1428;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #8892a4;
}

.breadcrumb a {
    color: #4a9eff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #8892a4;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.badge-info {
    background: rgba(74, 158, 255, 0.2);
    color: #93c5fd;
}

.badge-warning {
    background: rgba(251, 146, 60, 0.2);
    color: #fed7aa;
}

/* Heading */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Links */
a {
    color: #4a9eff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .card {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem;
    }
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #8892a4; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.inline-block { display: inline-block; }
