@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Prompt', sans-serif;
}

body {
    background: linear-gradient(135deg, #f3f4f8, #e3e7ff);
    min-height: 100vh;
    color: #111827;
}

.wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 3px solid #4f46e5;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.header-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: -2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    flex-wrap: wrap;
}

.badge-role {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef2ff;
    color: #4338ca;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.btn-outline {
    background: transparent;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-success {
    background: #16a34a;
    color: #ffffff;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-warning {
    background: #f97316;
    color: #ffffff;
}

.btn-warning:hover {
    background: #ea580c;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-thumb {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.project-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 10px;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.status-available {
    background: #ecfdf5;
    color: #15803d;
}

.status-borrowed {
    background: #fef2f2;
    color: #b91c1c;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.table-wrapper {
    margin-top: 8px;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table thead {
    background: #f3f4f6;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.table tr:hover td {
    background: #f9fafb;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #4b5563;
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #f9fafb;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
    background: #ffffff;
}

.textarea {
    resize: vertical;
    min-height: 80px;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 16px;
}

.auth-card {
    max-width: 420px;
    width: 100%;
}

.auth-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.auth-footer a {
    color: #4f46e5;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-nav button {
    background: transparent;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #4b5563;
    transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
}

.tab-nav button.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

@media (max-width: 768px) {
    .wrapper {
        margin-top: 24px;
    }

    .card {
        padding: 18px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .project-thumb {
        height: 160px;
    }

    .btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        align-items: flex-start;
        padding-top: 24px;
    }

    .card {
        padding: 16px;
    }

    .header-title {
        font-size: 18px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .project-thumb {
        height: 150px;
    }

    .btn-small {
        padding: 4px 10px;
        font-size: 12px;
    }
}