/* Youssef.sec Main Styles */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #a855f7;
    --success: #10b981;
    --light: #faf5ff;
    --dark: #4c1d95;
    --gray: #6b7280;
    --gray-light: #f5f3ff;
    --gray-light-2: #d7d5e0;
    --gray-dark: #4338ca;
    --danger: #ec4899;
    --warning: #f59e0b;
    --info: #06b6d4;
}
/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f8fafc;
}

/* figure {
position: relative;
    left: 25%;
} */

/* ===== AUTH PAGES STYLES ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-logo i {
    font-size: 32px;
    color: var(--primary);
}

.auth-logo span {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--gray);
    font-size: 14px;
}

/* ===== MAIN APP STYLES ===== */
.gradient-bg {
background: linear-gradient(135deg, #2b1d4a 0%, #28262e 100%);
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.note-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* User Online Indicator */
.user-online {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-dark);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--gray-dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-google {
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--gray-dark);
    width: 100%;
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

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

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0096c7;
    transform: translateY(-1px);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.hidden {
    display: none;
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 16px;
}

/* ===== LINKS ===== */
.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== LOADING STATES ===== */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* ===== PROSE CONTENT STYLES ===== */
.prose {
    max-width: none;
    line-height: 1.6;
}


.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #1f2937;
}



.prose h3 {
    font-size: 1.5em;
}

.prose h4 {
    font-size: 1.25em;
}

.prose p {
    margin-bottom: 1em;
    color: #4b5563;
}

.prose ul, .prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    color: #4b5563;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose pre {
    background-color: #f3f4f6;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-bottom: 1em;
    border: 1px solid #e5e7eb;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-size: 0.875em;
    color: #dc2626;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: #6b7280;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.prose th, .prose td {
    padding: 0.75em;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    margin: 1em 0;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-logo span {
        font-size: 24px;
    }

    .auth-title {
        font-size: 20px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .prose h1 {
        font-size: 1.875em;
    }

    .prose h2 {
        font-size: 1.5em;
    }

    .prose h3 {
        font-size: 1.25em;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== ADMIN SPECIFIC STYLES ===== */
.sidebar {
    transition: all 0.3s ease;
}

.sidebar-mini {
    width: 64px;
}

.sidebar-full {
    width: 256px;
}

.table-responsive {
    overflow-x: auto;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background-color: #fef3c7;
    color: #92400e;
}

.status-published {
    background-color: #d1fae5;
    color: #065f46;
}

.status-draft {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* ===== USER MENU STYLES ===== */
.user-menu-container {
    position: relative;
}

.user-menu-button {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-menu-button:hover {
    background-color: rgba(0, 82, 159, 0.05);
    border-color: rgba(0, 82, 159, 0.1);
}

.user-menu-button:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary);
    ring-opacity: 0.5;
}

.user-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-dropdown-menu {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 82, 159, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.user-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.user-dropdown-menu .menu-item {
    transition: all 0.2s ease;
    margin: 2px 4px;
    border-radius: 6px;
}

.user-dropdown-menu .menu-item:hover {
    background: linear-gradient(135deg, rgba(0, 82, 159, 0.05), rgba(254, 190, 16, 0.05));
}

.user-dropdown-menu .menu-item:active {
    transform: scale(0.98);
}

/* Chevron animation */
.user-menu-chevron.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

/* ===== USER MENU STYLES ===== */
.user-menu-button {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-menu-button:hover {
    background-color: rgba(0, 82, 159, 0.05);
    border-color: rgba(0, 82, 159, 0.1);
}

.user-menu-button:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary);
    ring-opacity: 0.5;
}

.user-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-dropdown-menu {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 82, 159, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.user-dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown-menu .menu-item {
    transition: all 0.2s ease;
    margin: 2px 4px;
    border-radius: 6px;
}

.user-dropdown-menu .menu-item:hover {
    background: linear-gradient(135deg, rgba(0, 82, 159, 0.05), rgba(254, 190, 16, 0.05));
}

.user-dropdown-menu .menu-item:active {
    transform: scale(0.98);
}

/* Chevron animation */
.user-menu-chevron.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

.prose * {
    color: var(--gray-light-2) !important;
}
.prose h1 {
    font-size: 2.25em;
    border-bottom: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    padding-bottom: 0.5em;
}

.prose h2 {
    font-size: 1.875em;
    border-bottom: 1px solid var(--primary) !important;
    color: rgb(96 165 250) !important;
    padding-bottom: 0.3em;
}

.prose h3 {
    font-size: 1.5em;
    color: rgb(96 165 250) !important;
    padding-bottom: 0.3em;
}

/* i {
    padding: 5px !important;
} */
