/* Personal Space Styles */
.personal-space-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding-bottom: 2rem;
}

.dark-mode .personal-space-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Header Styles */
.ps-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dark-mode .ps-header {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0;
}

.dark-mode .ps-title {
    color: #8b5cf6;
}

.ps-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.ps-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Smart Suggestions */
.ps-suggestions {
    margin-bottom: 2rem;
}

.suggestions-title {
    color: #334155;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dark-mode .suggestions-title {
    color: #f1f5f9;
}

.suggestions-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.suggestion-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-radius: 12px;
    padding: 1rem;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.suggestion-card:hover {
    transform: translateY(-2px);
}

.suggestion-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #92400e;
}

.suggestion-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #a16207;
}

.apply-suggestion-btn {
    white-space: nowrap;
}

/* Blocks Grid */
.ps-grid-container {
    padding: 0 1rem;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Block Card Styles */
.block-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: move;
    position: relative;
    overflow: hidden;
}

.dark-mode .block-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.block-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.block-card.featured {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.dark-mode .block-card.featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(30, 41, 59, 0.9) 100%);
}

/* Block Color Variants */
.indigo-block {
    border-left: 4px solid #6366f1;
}

.purple-block {
    border-left: 4px solid #8b5cf6;
}

.emerald-block {
    border-left: 4px solid #10b981;
}

.amber-block {
    border-left: 4px solid #f59e0b;
}

.rose-block {
    border-left: 4px solid #f43f5e;
}

.blue-block {
    border-left: 4px solid #3b82f6;
}

/* Block Header */
.block-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.block-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.block-meta {
    flex: 1;
}

.block-title {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #334155;
}

.dark-mode .block-title {
    color: #f1f5f9;
}

.block-type-label {
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.dark-mode .block-type-label {
    color: #94a3b8;
}

.block-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-star {
    color: #10b981;
    font-size: 1.1rem;
}

.btn-ghost {
    background: none;
    border: none;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
}

.dark-mode .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* Block Content */
.block-content {
    margin-bottom: 1rem;
    min-height: 80px;
    color: #334155;
}

.dark-mode .block-content {
    color: #e2e8f0;
}

/* Note Content */
.note-content p {
    margin: 0;
    line-height: 1.6;
}

/* Task List Content */
.progress-indicator {
    margin-bottom: 0.75rem;
}

.progress {
    height: 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 0.25rem;
}

.dark-mode .progress {
    background: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    background: linear-gradient(90deg, #10b981, #22c55e);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.task-item i {
    color: #10b981;
}

.task-item.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Goal Content */
.goal-progress {
    margin-bottom: 0.75rem;
}

.goal-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.goal-description {
    margin: 0;
    font-size: 0.9rem;
}

/* Reminder Content */
.reminder-content .alert-sm {
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.reminder-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #6366f1;
    font-weight: 500;
}

/* Quote Content */
.quote-content .blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1rem;
}

.quote-content .blockquote-footer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Link Content */
.link-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .link-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-icon {
    width: 32px;
    height: 32px;
    background: #6366f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.link-info h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.link-info p {
    margin: 0 0 0.25rem 0;
    font-size: 0.8rem;
}

/* Block Footer */
.block-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .block-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Dashboard Metrics */
.dashboard-metrics {
    margin-bottom: 2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode .metric-card {
    background: #1e293b;
    border-color: #334155;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
}

.metric-icon i {
    font-size: 1.5rem;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.dark-mode .metric-number {
    color: #f1f5f9;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-icon i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #334155;
    margin-bottom: 0.5rem;
}

.dark-mode .empty-state h3 {
    color: #f1f5f9;
}

.empty-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.25rem;
}

/* Block Types Grid */
.block-types-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.block-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
}

.dark-mode .block-section {
    background: #1e293b;
    border-color: #334155;
}

.block-section-title {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.block-section .block-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
}

.block-type-card {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.block-type-card:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.block-type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.block-type-card h6 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #334155;
}

.block-type-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* Focus Mode */
.focus-mode .ps-header,
.focus-mode .ps-suggestions,
.focus-mode .block-card:not([data-block-type="nota"]) {
    opacity: 0.3;
    pointer-events: none;
}

.focus-mode .block-card[data-block-type="nota"] {
    transform: scale(1.02);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2);
}

.focus-mode .navbar,
.focus-mode .sidebar-left,
.focus-mode .sidebar-right,
.focus-mode .mobile-bottom-nav {
    display: none !important;
}

.exit-focus-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ps-title {
        font-size: 2rem;
    }

    .ps-controls {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .blocks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .suggestions-list {
        flex-direction: column;
    }

    .suggestion-card {
        min-width: unset;
    }

    .block-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .block-type-card {
        padding: 1rem;
    }

    .block-type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Dark Mode Toggles */
.dark-mode-toggle {
    position: relative;
}

.dark-mode-toggle i {
    transition: transform 0.3s ease;
}

.dark-mode .dark-mode-toggle i {
    transform: rotate(180deg);
}

/* Sortable Drag State */
.sortable-ghost {
    opacity: 0.4;
    transform: rotate(5deg);
}

.sortable-chosen {
    cursor: grabbing;
}

/* Animation for new blocks */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block-card.new-block {
    animation: slideInUp 0.5s ease-out;
}

/* Notification styles */
.toast-notification {
    border-radius: 12px;
    border: none;
    backdrop-filter: blur(10px);
}

.toast-notification.success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.toast-notification.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Mochila quick access block */
.mochila-block {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.dark-mode .mochila-block {
    background: #1e293b;
    border-color: #334155;
}
