/**
 * Bookmark Manager Styles
 * Modern dark gradient design with responsive layout
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Authentication Forms */
.auth-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ecdc4, #0f4c75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 32px;
    color: #e0e0e0;
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Field Help and Error Messages */
.field-help {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.field-error {
    display: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4, #0f4c75);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-full {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.success-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
}

.success-link:hover {
    text-decoration: underline;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-links p {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.auth-links a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .auth-form {
        padding: 24px;
        margin: 16px 0;
    }
    
    .auth-form h1 {
        font-size: 1.75rem;
    }
    
    .form-control {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 20px;
    }
    
    .auth-form h1 {
        font-size: 1.5rem;
    }
}
/* Homepage Styles */
.homepage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
    position: relative;
}

.homepage-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ecdc4, #0f4c75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.create-own-btn {
    background: linear-gradient(135deg, #4ecdc4, #0f4c75);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

.create-own-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.welcome-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.welcome-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.2;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-section {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-section p {
    font-size: 1.1rem;
    color: #4ecdc4;
    margin: 0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Dashboard Styles */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.dashboard-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-content p {
    margin-bottom: 16px;
    color: #e0e0e0;
}

.dashboard-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #4ecdc4;
}

/* Mobile-first responsive design */
@media (min-width: 768px) {
    .homepage-header {
        padding: 20px 0;
        margin-bottom: 40px;
    }
    
    .homepage-header h1 {
        font-size: 2rem;
    }
    
    .main-nav {
        gap: 16px;
    }
    
    .welcome-section {
        padding: 60px 0;
    }
    
    .welcome-section h2 {
        font-size: 2.5rem;
    }
    
    .cta-section {
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .homepage-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px 0;
    }
    
    .main-nav {
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .create-own-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .welcome-section {
        padding: 32px 0;
    }
    
    .welcome-section h2 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .welcome-section p {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    
    .cta-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .homepage-header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .nav-link, .create-own-btn {
        font-size: 0.85rem;
    }
}
/* 
Animations and transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.welcome-section {
    animation: fadeInUp 0.8s ease-out;
}

.homepage-header {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.create-own-btn:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Improved hover states */
.nav-link:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

.create-own-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}/* Dashboa
rd Bulletin Board Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    width: 100%;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.header-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    color: #4ecdc4;
    font-weight: 500;
    font-size: 0.9rem;
}

.header-actions {
    display: flex !important;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end !important;
    align-items: flex-start;
    margin-left: auto !important;
}

/* Force right alignment for all screen sizes */
.dashboard-header .header-actions {
    justify-content: flex-end !important;
    margin-left: auto !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.sharing-info {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Ensure logout button matches Add bookmark button height */
.header-actions .btn-outline {
    padding: 12px 24px;
    height: auto;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* Responsive adjustments for logout button */
@media (max-width: 480px) {
    .header-actions .btn-outline {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-height: 36px;
    }
}

.sharing-info p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sharing-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #4ecdc4;
    font-size: 0.85rem;
    word-break: break-all;
}

.copy-btn {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(78, 205, 196, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.empty-state p {
    color: #e0e0e0;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Bulletin Board Layout */
.bulletin-board {
    display: grid;
    gap: 32px;
}

.category-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.category-actions {
    display: flex;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.category-section:hover .category-actions {
    opacity: 1;
}

.category-edit-btn,
.category-delete-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.category-edit-btn:hover {
    background: rgba(78, 205, 196, 0.2);
}

.category-delete-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Bookmarks Grid */
.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.bookmark-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(78, 205, 196, 0.3);
}

.bookmark-favicon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.default-favicon {
    font-size: 1.5rem;
    color: #4ecdc4;
}

.bookmark-content {
    margin-bottom: 12px;
}

.bookmark-title {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
}

.bookmark-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bookmark-title a:hover {
    color: #4ecdc4;
}

.bookmark-tag {
    display: inline-block;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.bookmark-url {
    color: #e0e0e0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.bookmark-description {
    color: #b0b0b0;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 6px;
    opacity: 0.9;
    font-style: italic;
}

.bookmark-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookmark-card:hover .bookmark-actions {
    opacity: 1;
}

.bookmark-edit-btn,
.bookmark-delete-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.bookmark-edit-btn:hover {
    background: rgba(78, 205, 196, 0.8);
}

.bookmark-delete-btn:hover {
    background: rgba(255, 107, 107, 0.8);
}

/* Responsive Dashboard Design */
@media (min-width: 768px) {
    .dashboard-container {
        padding: 24px;
    }
    
    .dashboard-header {
        padding: 16px 24px;
    }
    
    .header-info h1 {
        font-size: 2rem;
    }
    
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .header-info {
        flex: none;
    }
    
    .header-actions {
        justify-content: flex-end;
        align-items: flex-end;
        margin-left: 0;
    }
    
    .sharing-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .bookmarks-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .category-actions {
        opacity: 1;
    }
    
    .bookmark-actions {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 12px;
    }
    
    .dashboard-header {
        padding: 12px 16px;
    }
    
    .header-info h1 {
        font-size: 1.5rem;
    }
    
    .stats {
        gap: 12px;
    }
    
    .header-actions {
        flex-direction: row;
        gap: 16px;
        justify-content: flex-end;
        flex-wrap: wrap;
        align-items: flex-end;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}/* Modal St
yles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal form {
    padding: 0 24px 24px 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form enhancements for modals */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.modal select.form-control {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal select.form-control option {
    background: #1a1a2e;
    color: #ffffff;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        padding: 16px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .modal-header {
        padding: 20px 20px 0 20px;
    }
    
    .modal form {
        padding: 0 20px 20px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Loading overlay for forms */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
    z-index: 1;
}

/* Enhanced button states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Field validation states */
.form-control.is-valid {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.form-control.is-invalid {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.field-error.show {
    display: block;
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

/* Success states */
.field-success {
    color: #4ecdc4;
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 500;
}

/* Hover effects for interactive elements */
.bookmark-card,
.category-section {
    cursor: default;
}

.bookmark-card:hover .bookmark-title a {
    color: #4ecdc4;
}

/* Focus management for accessibility */
.modal:focus {
    outline: none;
}

.modal-content:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}/* E
mpty category state */
.empty-category {
    text-align: center;
    padding: 40px 20px;
    color: #e0e0e0;
    font-style: italic;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Enhanced hover effects */
.bookmark-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookmark-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(78, 205, 196, 0.4);
}

.category-section {
    transition: all 0.3s ease;
}

.category-section:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Improved button styles */
.btn {
    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%;
}

/* Smooth transitions for all interactive elements */
.nav-link,
.create-own-btn,
.bookmark-edit-btn,
.bookmark-delete-btn,
.category-edit-btn,
.category-delete-btn,
.copy-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for better accessibility */
.form-control:focus,
.btn:focus,
.modal-close:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Loading animation improvements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
/* Sh
ared Page Styles */
.shared-category .category-actions {
    display: none !important;
}

.shared-bookmark .bookmark-actions {
    display: none !important;
}

.shared-footer {
    text-align: center;
    padding: 32px 16px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shared-footer p {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin: 0;
}

.footer-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Shared page specific responsive adjustments */
@media (max-width: 767px) {
    .shared-footer {
        padding: 24px 16px;
        margin-top: 32px;
    }
}/* E
nhanced Sharing Interface Styles */
.sharing-info {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.sharing-header {
    margin-bottom: 12px;
    margin-left: 24px;
}

.sharing-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.sharing-header p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.85rem;
}

.sharing-url-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sharing-url-container code {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #4ecdc4;
    font-size: 0.85rem;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sharing-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Sharing Instructions Modal */
.sharing-instructions {
    padding: 8px 0;
}

.instruction-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #4ecdc4, #0f4c75);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sharing-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
    text-align: center;
}

.sharing-preview h4 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.sharing-preview p {
    margin: 0 0 16px 0;
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sharing-instructions {
    padding: 24px;
}

/* Responsive sharing interface */
@media (max-width: 767px) {
    .sharing-url-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sharing-url-container code {
        min-width: auto;
        text-align: center;
    }
    
    .sharing-actions {
        justify-content: center;
    }
    
    .instruction-step {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 20px 20px 12px 20px;
    }
    
    .sharing-instructions {
        padding: 20px;
    }
}/* Admin 
Panel Styles */
.admin-container {
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ecdc4, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.admin-header p {
    color: #e0e0e0;
    margin: 8px 0 0 0;
    font-size: 1.1rem;
}

.admin-header .header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Admin Statistics */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
    margin: 0;
}

.stat-content p {
    color: #e0e0e0;
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

/* Admin Sections */
.admin-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.section-header p {
    color: #e0e0e0;
    margin: 0;
}

/* Users Table */
.users-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
}

.users-table th,
.users-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: #4ecdc4;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    color: #e0e0e0;
}

.users-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-email {
    font-weight: 500;
    color: #ffffff;
}

.user-page-name {
    font-weight: 500;
}

.user-date {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #ffffff;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #e0e0e0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.empty-state p {
    margin: 0;
    opacity: 0.8;
}

/* Modal Styles for Admin */
.warning-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

.user-email-confirm {
    font-weight: 600;
    color: #4ecdc4;
    font-size: 1.1rem;
    margin: 8px 0;
}

.warning-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    color: #ff6b6b;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 12px;
}

.notification-success {
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.notification-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-header .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .users-table-container {
        font-size: 0.9rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 12px 8px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .admin-container {
        padding: 16px;
    }
    
    .admin-header,
    .admin-section {
        padding: 16px;
    }
    
    .notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
/* Category Management Modal */
.category-management-content {
    padding: 0 24px 24px 24px;
}

.category-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.category-stats {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.6);
}

@media (max-width: 768px) {
    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .category-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Drag and Drop Styles */
.bookmark-card.dragging {
    opacity: 0.5;
    cursor: move;
}

.bookmarks-grid.drag-over {
    background: rgba(78, 205, 196, 0.1);
    border: 2px dashed rgba(78, 205, 196, 0.3);
    border-radius: 8px;
}

/* Category Arrow Styles */
.category-arrows {
    display: flex;
    gap: 4px;
    margin-left: auto;
    margin-right: 8px;
}

.category-arrow-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.category-arrow-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-1px);
}

.category-arrow-btn:active {
    transform: translateY(0);
}

.category-arrow-btn.arrow-up {
    margin-right: 2px;
}

.category-arrow-btn.arrow-down {
    margin-left: 2px;
}

/* Ensure category header has proper flex layout */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Adjust category title to not take full width */
.category-title {
    flex: 0 0 auto;
    margin-right: 16px;
}

/* Responsive adjustments for category arrows */
@media (max-width: 768px) {
    .category-arrows {
        margin-right: 4px;
    }
    
    .category-arrow-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}