:root {
    --primary: #6B46C1;
    --accent: #00D4FF;
    --secondary: #9F7AEA;
    --success: #48BB78;
    --warning: #ED8936;
    --danger: #F56565;
    --info: #4299E1;
    --bg-gradient: linear-gradient(135deg, #6B46C1, #00D4FF);
    --bg-gradient-secondary: linear-gradient(135deg, #9F7AEA, #F56565);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    --blur: blur(10px);
    --blur-strong: blur(20px);
    --text-color: white;
    --text-muted: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.1);
    --footer-bg: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.3);
    --border-radius: 15px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: var(--transition);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.dark-mode {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    --text-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(0, 0, 0, 0.3);
    --footer-bg: rgba(0, 0, 0, 0.3);
}

.navbar {
    background: var(--nav-bg);
    backdrop-filter: var(--blur);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
    margin-right: 20px;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 200px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
    width: 250px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.dark-mode-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dark-mode-btn:hover {
    transform: scale(1.1);
}

.notification-dropdown {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    display: none;
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 350px;
    max-height: 400px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
}

.mark-all-read {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.mark-all-read:hover {
    background: var(--accent);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-item.unread {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--accent);
}

.notification-item .notification-type {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--accent);
}

.notification-item .notification-message {
    font-size: 14px;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.footer {
    background: var(--footer-bg);
    backdrop-filter: var(--blur);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.container {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: 20px auto;
    position: relative;
    transition: var(--transition);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--glass-bg-hover);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

input, button {
    display: block;
    margin: 15px auto;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

input {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.plans {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.plan {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 300px;
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan-price {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    color: var(--accent);
}

.plan-price .currency {
    font-size: 24px;
}

.plan-price .period {
    font-size: 16px;
    opacity: 0.8;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    color: var(--accent);
    margin-right: 10px;
}

.plan-button {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-area {
    border: 2px dashed var(--accent);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.upload-area:hover, .upload-area.dragover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.uploads-list {
    margin-top: 20px;
}

.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.upload-meta {
    margin-bottom: 20px;
}

.upload-meta input, .upload-meta textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.upload-meta textarea {
    resize: vertical;
    min-height: 60px;
}

.upload-info {
    flex: 1;
}

.upload-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--accent);
}

.upload-description {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upload-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

.upload-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.comments-section {
    margin-top: 30px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    padding: 20px;
}

.add-comment {
    margin-bottom: 20px;
}

.add-comment textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    resize: vertical;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-header strong {
    color: var(--accent);
}

.comment-date {
    font-size: 12px;
    opacity: 0.7;
}

.comment-text {
    line-height: 1.4;
}

.button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button::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;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    background: var(--accent);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glow);
}

.button:active {
    transform: translateY(0) scale(0.98);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.button.secondary {
    background: linear-gradient(135deg, var(--accent), var(--info));
}

.button.success {
    background: linear-gradient(135deg, var(--success), #38A169);
}

.button.danger {
    background: linear-gradient(135deg, var(--danger), #E53E3E);
}

.button.large {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: var(--border-radius);
}

.button.small {
    padding: 8px 16px;
    font-size: 12px;
}

.button.secondary {
    background: var(--accent);
}

.button.danger {
    background: #f44336;
}

.button.danger:hover {
    background: #d32f2f;
}

.button.danger {
    background: #e74c3c;
}

.button.danger:hover {
    background: #c0392b;
}

.button.success {
    background: #27ae60;
}

.button.success:hover {
    background: #229954;
}

.button.small {
    padding: 5px 10px;
    font-size: 14px;
}

.favorite-btn.favorited {
    background: #ff4757;
    color: white;
}

.favorite-btn.favorited:hover {
    background: #ff3742;
}

#messageContainer {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#messageContainer.show {
    opacity: 1;
}

#messageContainer.success {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid #48bb78;
}

#messageContainer.error {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: 1px solid #f56565;
}

/* Custom Icons */
.icon-file::before { content: "■"; color: #3498db; font-size: 12px; }
.icon-size::before { content: "□"; color: #f39c12; font-size: 12px; }
.icon-download::before { content: "↓"; font-weight: bold; color: #27ae60; font-size: 14px; }
.icon-view::before { content: "○"; color: #9b59b6; font-size: 12px; }
.icon-heart::before { content: "♡"; color: #666; font-size: 16px; }
.icon-heart-filled::before { content: "♥"; color: #e74c3c; font-size: 16px; }
.icon-upload::before { content: "↑"; font-weight: bold; color: #3498db; font-size: 14px; }
.icon-bell::before { content: "●"; color: #e67e22; font-size: 10px; position: relative; top: -2px; }
.icon-moon::before { content: "☽"; color: #34495e; }
.icon-sun::before { content: "☀"; color: #f1c40f; }

.stat-item i {
    margin-right: 5px;
    font-style: normal;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.8;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.admin-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-item h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.8;
}

.stat-item p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: var(--accent);
}

.error-page {
    text-align: center;
    padding: 50px 0;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: var(--accent);
    margin: 0;
    opacity: 0.8;
}

.error-page h2 {
    font-size: 32px;
    margin: 20px 0;
}

.error-page p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Efeitos especiais para páginas de erro */
.error-glow {
    position: relative;
}

.error-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ffa500, #ffff00, #32cd32, #1e90ff, #9370db);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientShift 3s ease-in-out infinite;
    filter: blur(8px);
    opacity: 0.7;
}

.error-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 6s ease-in-out infinite;
}

.error-particle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.error-particle:nth-child(2) { top: 30%; right: 25%; animation-delay: 1s; }
.error-particle:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 2s; }
.error-particle:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 3s; }
.error-particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 1;
    }
}

.error-ripple {
    position: relative;
    overflow: hidden;
}

.error-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.error-text-shadow {
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.error-magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-magnetic:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Efeitos de hover avançados */
.error-button-advanced {
    position: relative;
    overflow: hidden;
}

.error-button-advanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.error-button-advanced:hover::after {
    left: 100%;
}

.error-button-advanced:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Animações de entrada sequenciais */
.error-sequence .error-icon {
    animation: bounceIn 1s ease-out;
}

.error-sequence .error-code {
    animation: slideInUp 1s ease-out 0.2s both;
}

.error-sequence .error-title {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.error-sequence .error-message {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.error-sequence .error-actions {
    animation: slideInUp 1s ease-out 0.8s both;
}

/* Efeitos de parallax para background */
.error-parallax {
    transform-style: preserve-3d;
}

.error-parallax::before {
    transform: translateZ(-1px) scale(2);
}

/* Gradientes animados */
@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.error-gradient-bg {
    background: linear-gradient(-45deg, #ff6b6b, #ffa500, #ffff00, #32cd32);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

/* Efeitos de glassmorphism avançados */
.error-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animações de loading para botões */
.error-loading {
    position: relative;
    pointer-events: none;
}

.error-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.public-file-container {
    max-width: 800px;
    margin: 0 auto;
}

.file-header {
    text-align: center;
    margin-bottom: 30px;
}

.file-header h1 {
    color: var(--accent);
    margin-bottom: 10px;
}

.file-description {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.file-info {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.file-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.file-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.file-preview {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.image-preview img,
.video-preview video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}

.pdf-preview iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.file-icon-large {
    font-size: 64px;
    opacity: 0.5;
}

.comments-section {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    padding: 20px;
}

.comments-section h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

.comments-list {
    margin-bottom: 20px;
}

.comment-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-date {
    font-size: 12px;
    opacity: 0.6;
}

.comment-text {
    line-height: 1.4;
}

.add-comment {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.add-comment h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.login-prompt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.reports-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.reports-list {
    margin-top: 30px;
}

.report-item {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.report-id {
    font-weight: bold;
    color: var(--accent);
}

.report-type {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.report-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pendente { background: #ff9800; color: white; }
.status-investigando { background: #2196f3; color: white; }
.status-resolvido { background: #4caf50; color: white; }
.status-rejeitado { background: #f44336; color: white; }

.report-content p {
    margin: 5px 0;
    font-size: 14px;
}

.report-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.ticket-form {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-form h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

.tickets-list {
    margin-top: 30px;
}

.ticket-item {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.ticket-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-header h4 {
    margin: 0;
    color: var(--accent);
}

.ticket-status, .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-aberto { background: #2196f3; color: white; }
.status-em_andamento { background: #ff9800; color: white; }
.status-aguardando_resposta { background: #9c27b0; color: white; }
.status-resolvido { background: #4caf50; color: white; }
.status-fechado { background: #607d8b; color: white; }

.ticket-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.ticket-category {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.ticket-priority, .priority-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.priority-baixa { background: #4caf50; color: white; }
.priority-media { background: #ff9800; color: white; }
.priority-alta { background: #ff5722; color: white; }
.priority-urgente { background: #f44336; color: white; }

.ticket-date {
    margin-left: auto;
}

.ticket-actions {
    display: flex;
    gap: 10px;
}

.no-tickets {
    text-align: center;
    padding: 50px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.ticket-detail {
    max-width: 800px;
    margin: 0 auto;
}

.ticket-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.messages-container {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 30px 0;
}

.messages-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--border-radius-small);
}

.message-item.usuario {
    background: rgba(107, 107, 198, 0.1);
    border-left: 4px solid var(--primary);
}

.message-item.suporte {
    background: rgba(72, 187, 120, 0.1);
    border-left: 4px solid var(--success);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-time {
    opacity: 0.7;
}

.reply-form {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.reply-form h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.ticket-closed {
    text-align: center;
    padding: 20px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: var(--border-radius-small);
    margin-top: 20px;
}

.tickets-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.tickets-table th,
.tickets-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tickets-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    .plans {
        flex-direction: column;
    }
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: var(--blur);
        display: none;
    }
    .nav-links.show {
        display: flex;
    }
    .upload-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .upload-actions {
        margin-top: 10px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ticket-meta {
        flex-direction: column;
        gap: 5px;
    }
    .messages-container {
        padding: 15px;
    }
    .tickets-table {
        font-size: 14px;
    }
    .tickets-table th,
    .tickets-table td {
        padding: 8px 4px;
    }
}