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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F9F7F3;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #C86A4B;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #C86A4B;
    font-weight: 600;
}

.pronouns {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 10px;
    font-weight: 500;
}

.location {
    color: #666;
    font-size: 0.95em;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #C86A4B;
    border-bottom: 2px solid #C86A4B;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.about p {
    margin-bottom: 15px;
    text-align: justify;
}

.experience-item,
.education-item,
.project-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.company,
.institution {
    color: #555;
    font-weight: 500;
    margin-bottom: 5px;
}

.duration {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.description {
    margin-top: 12px;
    line-height: 1.7;
}

.tech {
    margin-top: 10px;
    color: #666;
    font-style: italic;
    font-size: 0.95em;
}

.github-link {
    display: inline-block;
    margin-top: 10px;
    color: #C86A4B;
    text-decoration: none;
    font-size: 0.95em;
}

.github-link:hover {
    color: #b55a3d;
    text-decoration: underline;
}

.links {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #C86A4B;
}

.nav-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #C86A4B;
    color: #F9F7F3;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #b55a3d;
}

/* Docs page styles */
.docs-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.docs-container h1 {
    color: #C86A4B;
}

/* Search styles */
.documents-header {
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    margin-top: 15px;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 1em;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #C86A4B;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background-color: #f0f0f0;
    color: #C86A4B;
}

.search-results {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #fef5f2;
    border-left: 3px solid #C86A4B;
    border-radius: 4px;
    color: #C86A4B;
    font-size: 0.9em;
}

.search-results.no-results {
    background-color: #fff5f5;
    border-left-color: #C86A4B;
    color: #C86A4B;
}

/* Description section styles */
.description-section {
    margin: 15px 0;
}

.description-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c2c2c;
}

.description-input {
    width: 100%;
    padding: 12px;
    font-size: 0.95em;
    font-family: inherit;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    background-color: #ffffff;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.description-input:focus {
    outline: none;
    border-color: #C86A4B;
}

/* Document description display */
.doc-description {
    margin-top: 10px;
    padding: 10px;
    background-color: #F9F7F3;
    border-left: 3px solid #C86A4B;
    border-radius: 4px;
}

.doc-description p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
    font-style: italic;
}

/* Category selection styles */
.category-selection {
    margin: 15px 0;
    padding: 15px;
    background-color: #F9F7F3;
    border-radius: 6px;
    border: 1px solid #e0ddd5;
}

.category-selection label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c2c2c;
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.category-checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #ffffff;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-checkbox-label:hover {
    border-color: #C86A4B;
}

.category-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.category-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #C86A4B;
}

.delete-category-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-category-btn:hover {
    background-color: #fee;
    color: #C86A4B;
}

.add-category-container {
    display: flex;
    gap: 10px;
}

.new-category-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    font-size: 0.95em;
}

.new-category-input:focus {
    outline: none;
    border-color: #C86A4B;
}

.add-category-btn {
    padding: 8px 16px;
    background-color: #C86A4B;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-category-btn:hover {
    background-color: #b55a3d;
}

/* Category tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0ddd5;
}

.category-tab {
    padding: 8px 16px;
    background-color: #ffffff;
    color: #666;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: #C86A4B;
    color: #C86A4B;
}

.category-tab.active {
    background-color: #C86A4B;
    color: #ffffff;
    border-color: #C86A4B;
}

/* Category tags on documents */
.doc-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #fef5f2;
    color: #C86A4B;
    border: 1px solid #C86A4B;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.doc-info {
    flex: 1;
}

/* Pagination styles */
.pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0ddd5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-info {
    color: #666;
    font-size: 0.9em;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 8px 12px;
    background-color: #ffffff;
    color: #666;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #C86A4B;
    color: #C86A4B;
    background-color: #fef5f2;
}

.pagination-btn.active {
    background-color: #C86A4B;
    color: #ffffff;
    border-color: #C86A4B;
    font-weight: 600;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 4px;
    color: #999;
    font-size: 0.9em;
}

.password-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.password-form input {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #e0ddd5;
    border-radius: 6px;
    margin-bottom: 15px;
}

.password-form button {
    width: 100%;
    padding: 12px;
    background-color: #C86A4B;
    color: #F9F7F3;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-form button:hover {
    background-color: #b55a3d;
}

.error-message {
    color: #C86A4B;
    margin-top: 10px;
    font-size: 0.9em;
}

.docs-list {
    display: none;
}

.docs-list.active {
    display: block;
}

.doc-item {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.doc-item h3 {
    margin: 0;
    font-size: 1.1em;
    color: #2c2c2c;
}

.download-btn {
    padding: 8px 16px;
    background-color: #C86A4B;
    color: #F9F7F3;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.download-btn:hover:not(:disabled) {
    background-color: #b55a3d;
}

.download-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.delete-btn {
    padding: 8px 16px;
    background-color: #C86A4B;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #b55a3d;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #C86A4B;
    text-decoration: none;
}

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

/* Upload section styles */
.upload-section {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.upload-section h2 {
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-form input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0ddd5;
    border-radius: 6px;
    background-color: #F9F7F3;
    cursor: pointer;
    font-size: 0.95em;
}

.upload-form input[type="file"]:hover {
    border-color: #C86A4B;
}

.upload-btn {
    padding: 12px;
    background-color: #C86A4B;
    color: #F9F7F3;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-btn:hover:not(:disabled) {
    background-color: #b55a3d;
}

.upload-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.upload-status {
    font-size: 0.9em;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    min-height: 20px;
}

.upload-status.uploading {
    color: #C86A4B;
    background-color: #fef5f2;
}

.upload-status.success {
    color: #C86A4B;
    background-color: #fef5f2;
}

.upload-status.error {
    color: #C86A4B;
    background-color: #fef5f2;
}

/* View button */
.view-btn {
    padding: 8px 16px;
    background-color: #C86A4B;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-btn:hover {
    background-color: #b55a3d;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #F9F7F3;
    margin: 2% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #666;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #C86A4B;
}

.modal-body {
    margin-top: 20px;
}

.modal-body iframe {
    border-radius: 4px;
}

.modal-body img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Confirmation Modal */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.confirm-modal-content {
    background-color: #F9F7F3;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    overflow: hidden;
}

.confirm-modal-header {
    padding: 20px 25px;
    background-color: #C86A4B;
    color: #ffffff;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.confirm-modal-body {
    padding: 25px;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: #2c2c2c;
}

.confirm-modal-footer {
    padding: 15px 25px;
    background-color: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e0ddd5;
}

.confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.confirm-btn.cancel-btn {
    background-color: #ffffff;
    color: #666;
    border: 2px solid #e0ddd5;
}

.confirm-btn.cancel-btn:hover {
    background-color: #f5f5f5;
    border-color: #C86A4B;
    color: #C86A4B;
}

.confirm-btn.delete-btn {
    background-color: #C86A4B;
    color: #ffffff;
}

.confirm-btn.delete-btn:hover {
    background-color: #b55a3d;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container,
    .docs-container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .tagline {
        font-size: 1em;
        line-height: 1.4;
    }
    
    .location {
        font-size: 0.9em;
    }
    
    header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    section {
        margin-bottom: 30px;
    }
    
    .experience-item,
    .education-item,
    .project-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .about p {
        text-align: left;
        font-size: 0.95em;
    }
    
    .description {
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    .links {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .nav-link {
        padding: 14px 20px;
        font-size: 0.95em;
        display: block;
        width: 100%;
    }
    
    /* Docs page mobile */
    .password-form {
        padding: 20px;
    }
    
    .password-form h2 {
        font-size: 1.3em;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .upload-section h2 {
        font-size: 1.3em;
    }
    
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .doc-item h3 {
        font-size: 1em;
        word-break: break-word;
        width: 100%;
    }
    
    .doc-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn,
    .view-btn,
    .delete-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 0.95em;
    }
    
    .back-link {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    
    .search-container {
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .search-input {
        padding: 10px 35px 10px 12px;
        font-size: 0.95em;
    }
    
    .search-results {
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    .category-selection {
        padding: 12px;
    }
    
    .category-checkboxes {
        gap: 8px;
    }
    
    .category-checkbox-label {
        padding: 6px 10px;
        font-size: 0.9em;
    }
    
    .delete-category-btn {
        font-size: 1.3em;
        width: 20px;
        height: 20px;
    }
    
    .add-category-container {
        flex-direction: column;
    }
    
    .add-category-btn {
        width: 100%;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .doc-categories {
        gap: 4px;
    }
    
    .category-tag {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    
    .pagination {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .pagination-info {
        font-size: 0.85em;
    }
    
    .pagination-controls {
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.85em;
        min-width: 36px;
    }
    
    .confirm-modal-content {
        width: 95%;
        max-width: 400px;
    }
    
    .confirm-modal-header {
        padding: 15px 20px;
    }
    
    .confirm-modal-header h3 {
        font-size: 1.1em;
    }
    
    .confirm-modal-body {
        padding: 20px;
    }
    
    .confirm-modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .confirm-btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px 15px;
        max-height: 85vh;
    }
    
    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-body {
        margin-top: 10px;
    }
    
    .modal-body h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .modal-body iframe {
        height: 70vh;
    }
    
    .modal-body img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .container,
    .docs-container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .tagline {
        font-size: 0.95em;
    }
    
    .experience-item,
    .education-item,
    .project-item {
        padding: 12px;
    }
    
    .password-form,
    .upload-section {
        padding: 15px;
    }
    
    .doc-item {
        padding: 12px;
    }
    
    .pagination-btn {
        padding: 6px 8px;
        font-size: 0.8em;
        min-width: 32px;
    }
    
    .pagination-info {
        font-size: 0.8em;
    }
    
    .modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 15px 10px;
    }
    
    .modal-body iframe {
        height: 65vh;
    }
}

