/* ====================================
   OTHER RESOURCES PAGE STYLES
   ==================================== */

/* Base Styles */
.resources-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

.resources-header {
    text-align: center;
    margin-bottom: 3rem;
}

.resources-header .section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #5a6c7d;
    font-weight: 300;
}

/* Category Filters */
.resources-categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    /* Progressive enhancement for scrollbar hiding */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Firefox only if supported */
@supports (scrollbar-width: none) {
    .resources-categories {
        scrollbar-width: none; /* Firefox */
    }
}

.resources-categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.category-btn.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Search and View Controls */
.resources-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.view-controls {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5a6c7d;
    font-size: 1rem;
}

.view-btn:hover {
    background: #e9ecef;
}

.view-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 3rem;
}

/* Grid View (Default) - Compact vertical layout */
.resources-grid:not(.list-view) .resource-card {
    display: flex;
    flex-direction: column;
}

.resources-grid:not(.list-view) .resource-preview {
    height: 80px;
}

.resources-grid:not(.list-view) .resource-info {
    padding: 10px;
}

.resources-grid:not(.list-view) .resource-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.resources-grid:not(.list-view) .resource-description {
    font-size: 0.8rem;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.resources-grid:not(.list-view) .resource-actions {
    padding: 10px;
    padding-top: 0;
}

/* List View - Horizontal layout with more detail */
.resources-grid.list-view .resource-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 90px;
    position: relative;
}

.resources-grid.list-view .resource-preview {
    width: 90px;
    height: auto;
    flex-shrink: 0;
}

.resources-grid.list-view .resource-info {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resources-grid.list-view .resource-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.resources-grid.list-view .resource-description {
    font-size: 0.8rem;
    margin-bottom: 6px;
    line-height: 1.3;
}

.resources-grid.list-view .resource-actions {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.resource-preview {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-overlay {
    opacity: 1;
}

.preview-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3498db;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

/* File Icons */
.file-icon {
    font-size: 2.5rem;
    color: #6c757d;
    text-align: center;
}

.file-icon.pdf {
    color: #e74c3c;
}

.file-icon.word {
    color: #2980b9;
}

.file-icon.excel {
    color: #27ae60;
}

.file-icon.powerpoint {
    color: #f39c12;
}

.file-icon.app {
    color: #9b59b6;
}

.file-icon.code {
    color: #34495e;
}

.file-icon.video {
    color: #e67e22;
}

.file-icon.link {
    color: #3498db;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Resource Info */
.resource-info {
    padding: 15px;
}

.resource-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.resource-description {
    color: #5a6c7d;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 8px 0;
    border-top: 1px solid #f1f2f6;
    border-bottom: 1px solid #f1f2f6;
}

.resource-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 8px 0;
    gap: 15px;
    font-size: 0.85rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.stat-item i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-item:hover {
    color: #3498db;
}

.link-stats {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f1f2f6;
}

.link-stats .stat-item {
    font-size: 0.8rem;
    color: #95a5a6;
}

.file-type {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.file-size {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.resource-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
}

.download-btn:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.download-btn.primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.download-btn.primary:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.share-btn {
    background: #f8f9fa;
    color: #5a6c7d;
    border: 2px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.85rem;
}

.share-btn:hover {
    background: #e9ecef;
    color: #3498db;
    border-color: #3498db;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-header p {
    color: #5a6c7d;
    font-size: 1.1rem;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed #e9ecef;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.upload-area.dragover {
    border-color: #27ae60;
    background: #e8f5e8;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-text h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: #5a6c7d;
    margin-bottom: 1rem;
}

.browse-btn {
    background: none;
    border: none;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.upload-text small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

#file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-fields {
    display: grid;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.field-group input,
.field-group textarea,
.field-group select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.upload-btn {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.upload-btn:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.upload-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.upload-btn:disabled:hover {
    background: #95a5a6;
    transform: none;
    box-shadow: none;
}

.upload-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cancel-btn {
    background: #f8f9fa;
    color: #5a6c7d;
    border: 2px solid #e9ecef;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.cancel-btn:hover {
    background: #e9ecef;
    color: #e74c3c;
    border-color: #e74c3c;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

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

.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.modal-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e9ecef;
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f1f2f6;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #f8f9fa;
}

.close-btn.secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.close-btn.secondary:hover {
    background: #5a6c7d;
}

/* Preview Content Styles */
.preview-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.preview-video {
    width: 100%;
    border-radius: 8px;
}

.preview-pdf {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

.preview-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}

.preview-link {
    text-align: center;
    padding: 40px;
}

.preview-link .link-icon {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 20px;
}

.preview-link h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.preview-link p {
    color: #5a6c7d;
    margin-bottom: 20px;
}

.preview-link .visit-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ====================================
   QUICK LINKS SECTION STYLES
   ==================================== */

.replace-btn {
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.replace-btn:hover {
    background: #d68910;
    transform: translateY(-1px);
}

/* Resource Tags */
.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.upload-date {
    color: #6c757d;
    font-size: 11px;
}

/* Edit Modal */
.edit-modal .modal-content {
    max-width: 500px;
}

.edit-modal .field-group {
    margin-bottom: 20px;
}

.edit-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.edit-modal input,
.edit-modal select,
.edit-modal textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.edit-modal input:focus,
.edit-modal select:focus,
.edit-modal textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* Enhanced Preview Styles */
.image-preview-container,
.video-preview-container,
.pdf-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.preview-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.preview-pdf {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.code-preview-container {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #2d3748;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-language {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.preview-code {
    background: #f8f9fa;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #2d3748;
    max-height: 60vh;
    overflow: auto;
    white-space: pre-wrap;
}

.preview-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.preview-placeholder h4 {
    color: #2c3e50;
    margin: 15px 0;
    font-size: 1.3rem;
}

.preview-placeholder p {
    margin: 10px 0;
    line-height: 1.6;
}

.file-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.file-details p {
    margin: 5px 0;
    font-size: 14px;
}

.security-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.file-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #495057;
}

/* Responsive Design */
/* Medium screens: 2 columns */
@media (max-width: 768px) and (min-width: 481px) {
    .resources-grid:not(.list-view) {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet and smaller: mobile layout */
@media (max-width: 768px) {
    .resources-section {
        padding: 30px 0;
    }
    
    .resources-header .section-title {
        font-size: 2rem;
    }
    
    .resources-categories {
        flex-direction: row;
        justify-content: flex-start;
        gap: 8px;
        padding: 15px;
        overflow-x: auto;
    }
    
    .category-btn {
        justify-content: center;
        min-width: auto;
        padding: 8px 16px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .resources-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    /* Mobile: Single column for both grid and list views */
    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* Mobile list view adjustments - keep horizontal layout but smaller */
    .resources-grid.list-view .resource-card {
        min-height: 80px;
    }
    
    .resources-grid.list-view .resource-preview {
        width: 70px;
    }
    
    .resources-grid.list-view .resource-info {
        padding: 8px;
    }
    
    .resources-grid.list-view .resource-actions {
        top: 6px;
        right: 6px;
    }
    
    .resources-grid.list-view .resource-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 10px;
        min-width: auto;
    }
    
    .field-row {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95vw;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet: Optimize three-column layout */
    .resources-grid:not(.list-view) {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .resources-grid.list-view .resource-card {
        grid-template-columns: 80px 1fr auto;
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    /* Large screens: Allow three columns for grid view */
    .resources-grid:not(.list-view) {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .resource-info {
        padding: 20px;
    }
    
    .resource-title {
        font-size: 1.1rem;
    }
    
    .resource-description {
        font-size: 0.9rem;
    }
    
    .upload-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .upload-text h4 {
        font-size: 1.1rem;
    }
}

/* Empty State Styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 600px;
}

.empty-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .empty-state {
        padding: 60px 30px;
        margin: 20px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.5rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

/* ====================================
   QUICK LINKS SECTION STYLES
   ==================================== */

.links-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0 2rem 0;
    width: 100%;
    max-width: 100%;
    border-top: 3px solid #3498db;
}

.links-header {
    text-align: center;
    margin-bottom: 25px;
}

.links-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.links-header h3 i {
    color: #3498db;
}

.links-header p {
    margin: 0;
    color: #5a6c7d;
    font-size: 1rem;
}

/* Links Grid - Two Columns */
.links-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-top: 25px;
}

.link-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.link-item:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.link-bullet {
    color: #3498db;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-title-anchor {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    transition: all 0.3s ease;
    display: block;
}

.link-title-anchor:hover {
    color: #3498db;
    text-decoration: underline;
}

.link-description {
    color: #5a6c7d;
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0 0 0;
}

/* Responsive Design for Links */
@media (max-width: 768px) {
    .links-grid.two-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .links-section {
        padding: 20px;
        margin: 1rem 0;
    }
    
    .links-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .link-item {
        padding: 10px;
    }
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.link-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.link-card:hover {
    border-color: #3498db;
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.link-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.link-icon {
    font-size: 24px;
    color: #3498db;
    min-width: 32px;
}

.link-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.link-category {
    font-size: 11px;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.link-description {
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.link-url {
    color: #3498db;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.link-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.visit-btn {
    background: #3498db;
    color: white;
}

.visit-btn:hover {
    background: #2980b9;
}

.edit-btn {
    background: #f39c12;
    color: white;
}

.edit-btn:hover {
    background: #e67e22;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Empty state for links */
.links-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.links-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.links-empty-state h4 {
    color: #495057;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        padding: 15px;
    }
}
