/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 26px;
    font-weight: 700;
    color: #4f46e5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo i {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
}

.badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background: rgba(243, 244, 246, 0.9);
    color: #374151;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.btn-secondary:hover {
    background: rgba(229, 231, 235, 0.9);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Login Form Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #4f46e5;
    font-size: 28px;
    font-weight: 700;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-left: 40px;
}

/* Notification Styles */
.notification {
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification.success {
    background: rgba(209, 250, 229, 0.9);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Layout Styles */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.filters {
    margin-bottom: 30px;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 18px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #374151;
    border: 2px solid transparent;
}

.category-item:hover {
    background: rgba(243, 244, 246, 0.8);
    transform: translateX(-5px);
    border-color: rgba(79, 70, 229, 0.2);
}

.category-item.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.category-count {
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    min-height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(243, 244, 246, 0.8);
}

.content-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 12px 45px 12px 18px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 25px;
    width: 320px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    width: 350px;
}

.search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 16px;
}

.sort-select {
    padding: 12px 18px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Links Grid Styles */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.link-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(79, 70, 229, 0.2);
}

.link-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.action-btn {
    background: rgba(243, 244, 246, 0.8);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #6b7280;
}

.action-btn:hover {
    background: rgba(229, 231, 235, 0.9);
    color: #374151;
    transform: scale(1.1);
}

.link-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
    line-height: 1.3;
}

.link-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-badge {
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.link-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #9ca3af;
    padding-top: 15px;
    border-top: 1px solid rgba(243, 244, 246, 0.8);
}

.link-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #d1d5db;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.2);
}

.favorite-btn.favorited {
    color: #f59e0b;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin: 3% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(243, 244, 246, 0.8);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(243, 244, 246, 0.8);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(229, 231, 235, 0.9);
    color: #374151;
    transform: rotate(90deg);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(243, 244, 246, 0.8);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 80px;
    margin-bottom: 25px;
    opacity: 0.4;
    color: #d1d5db;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #6b7280;
    font-weight: 600;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 15px 50px rgba(79, 70, 229, 0.6);
}

/* Color Picker Styles */
.color-picker {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Emoji Picker Styles */
.emoji-picker {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.emoji-option {
    padding: 8px 12px;
    border: 2px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.emoji-option:hover {
    border-color: rgba(79, 70, 229, 0.5);
    transform: scale(1.1);
}

.emoji-option.selected {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.1);
}

/* Back Button */
.back-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    text-decoration: none;
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-right: 15px;
}

.back-all:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .sidebar {
        padding: 25px;
    }
    
    .main-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 25px;
    }
    
    .header {
        padding: 20px 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .search-box input {
        width: 250px;
    }
    
    .search-box input:focus {
        width: 280px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .content-header h1 {
        font-size: 24px;
        text-align: center;
    }
    
    .search-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .login-form {
        padding: 35px;
        margin: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px;
        width: 95%;
    }
    
    .fab {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .main-content, .sidebar {
        padding: 20px;
        border-radius: 20px;
    }
    
    .login-form {
        padding: 25px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .search-box input:focus {
        width: 220px;
    }
    
    .link-card {
        padding: 20px;
    }
    
    .modal-content {
        padding: 25px;
    }
    
    .color-picker {
        gap: 8px;
    }
    
    .color-option {
        width: 30px;
        height: 30px;
    }
}

/* Advanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stat-card:nth-child(1) { animation: float 3s ease-in-out infinite; }
.stat-card:nth-child(2) { animation: float 3s ease-in-out infinite 0.5s; }
.stat-card:nth-child(3) { animation: float 3s ease-in-out infinite 1s; }
.stat-card:nth-child(4) { animation: float 3s ease-in-out infinite 1.5s; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

/* Advanced Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Tooltip Styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header, .sidebar, .fab, .modal {
        display: none !important;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .link-card {
        border: 1px solid #ddd;
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .btn {
        border: 1px solid #333;
        background: white !important;
        color: #333 !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .category-item.active {
        background: #000;
        color: #fff;
    }
    
    .link-card:hover {
        border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .link-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .fab:hover {
        transform: scale(1.05);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    }
    
    .header, .sidebar, .main-content, .modal-content, .login-form {
        background: rgba(31, 41, 55, 0.95);
        color: #f9fafb;
    }
    
    .form-control {
        background: rgba(55, 65, 81, 0.8);
        border-color: rgba(75, 85, 99, 0.8);
        color: #f9fafb;
    }
    
    .link-card {
        background: rgba(55, 65, 81, 0.9);
        color: #f9fafb;
    }
    
    .category-item {
        color: #e5e7eb;
    }
    
    .link-title {
        color: #f3f4f6;
    }
    
    .notification.success {
        background: rgba(34, 197, 94, 0.2);
        color: #86efac;
        border-color: rgba(34, 197, 94, 0.3);
    }
    
    .notification.error {
        background: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
        border-color: rgba(239, 68, 68, 0.3);
    }
}

/* Custom Animations for Special Elements */
.logo i {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        text-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(79, 70, 229, 0.8), 0 0 30px rgba(124, 58, 237, 0.6);
    }
}

/* Focus Indicators for Accessibility */
.btn:focus,
.form-control:focus,
.category-item:focus {
    outline: 3px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}

/* Success and Error States */
.form-control.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Custom Selection */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background: rgba(79, 70, 229, 0.2);
    color: #1f2937;
}

/* Additional Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Custom CSS Variables for Easy Theming */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-primary: rgba(255, 255, 255, 0.95);
    --bg-secondary: rgba(243, 244, 246, 0.8);
    --bg-muted: rgba(229, 231, 235, 0.6);
    
    --border-color: rgba(229, 231, 235, 0.8);
    --border-focus: rgba(79, 70, 229, 0.5);
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 25px;
}

/* Enhanced Gradient Backgrounds */
.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* Micro-Interactions */
.btn, .link-card, .category-item {
    transform-origin: center center;
    will-change: transform;
}

/* Enhanced Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Glass Morphism Enhanced */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Final responsive adjustments */
@media (max-width: 375px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .main-content, .sidebar {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 5% auto;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}