* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #1f2937;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.page-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
}

.add-button {
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    
}

.add-button:hover {
    background-color: #1d4ed8;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.filters form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    min-width: 220px;
    background-color: #fff;
}

.filter-button {
    background-color: #111827;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.filter-button:hover {
    background-color: black;
}

.documents-grid {
    display: grid;
    gap: 18px;
}

.document-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.document-title {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.document-description {
    margin: 0 0 14px 0;
    color: #4b5563;
    line-height: 1.5;
}

.document-meta {
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.status {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background-color: #e5e7eb;
    color: #111827;
}

.open-button {
    display: inline-block;
    background-color: #16a34a;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.open-button:hover {
    background-color: #15803d;
}

.empty-box {
    background: white;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    color: #6b7280;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.detail-card {
    background: white;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

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

.detail-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 32px;
}

.detail-row {
    margin-bottom: 18px;
}

.detail-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.detail-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.file-link {
    display: inline-block;
    margin-top: 4px;
    text-decoration: none;
    color: #16a34a;
    font-weight: 600;
}

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

.document-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background-color: white;
    width: 100%;
}

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

.save-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
}

.save-button:hover {
    background-color: #1d4ed8;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.login-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    text-align: center;
}

.login-subtitle {
    margin: 0 0 26px 0;
    text-align: center;
    color: #6b7280;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-button {
    width: 100%;
    margin-top: 6px;
}

.login-error {
    padding: 12px 14px;
    border-radius: 10px;
    background-color: #fee2e2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.delete-button {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #b91c1c;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.logout-form {
    margin: 0;
    display: inline-flex;
}