:root {
    --primary: #c99349;
    --primary-hover: #b07d35;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0c1524;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 2rem;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.badge {
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(201, 147, 73, 0.15);
    color: var(--primary);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-download:hover {
    background: var(--primary-hover);
}

.btn-manage {
    background: #64748b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    margin-right: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
}

.btn-manage:hover {
    background: #475569;
}

.btn-delete {
    background: #e11d48;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: #be123c;
    transform: translateY(-1px);
}

.btn-delete:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.modal-content header {
    margin-bottom: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.doc-info {
    font-size: 0.875rem;
}

.doc-date {
    font-size: 0.75rem;
    color: #64748b;
}

.upload-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-download svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}