* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
}

header {
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-title {
    flex: 1;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Autenticação */
.user-section {
    display: flex;
    align-items: center;
    min-width: 200px;
    justify-content: flex-end;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login svg {
    flex-shrink: 0;
}

.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.dropdown-arrow {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.user-avatar:hover .dropdown-arrow {
    transform: translateY(2px);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    overflow: hidden;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light-gray);
}

.dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.dropdown-email {
    font-size: 0.85rem;
    color: var(--gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--light-gray);
}

.dropdown-item svg {
    color: var(--gray);
}

/* Formulário */
.url-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease;
}

.input-group {
    display: flex;
    gap: 10px;
}

/* Opções Avançadas */
.advanced-options {
    margin-top: 20px;
}

.btn-toggle-options {
    padding: 10px 20px;
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.btn-toggle-options:hover {
    background: var(--border);
}

.options-content {
    margin-top: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

.option-group {
    margin-bottom: 15px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.option-group input,
.option-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.option-group input:focus,
.option-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.option-group small {
    display: block;
    margin-top: 5px;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Premium Features & Guest Restrictions */
.login-required-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.notice-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.notice-content svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.notice-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.notice-content p {
    margin: 8px 0;
    opacity: 0.95;
}

.notice-content ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style: none;
}

.notice-content ul li {
    margin: 6px 0;
    padding-left: 5px;
}

.notice-content ul li::before {
    content: "✨ ";
    margin-right: 5px;
}

.btn-login-notice {
    margin-top: 15px;
    padding: 10px 20px;
    background: white;
    color: #764ba2;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-login-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.premium-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    vertical-align: middle;
}

/* Campos desabilitados */
.option-group input:disabled,
.option-group select:disabled {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.option-group input:disabled::placeholder {
    color: #9ca3af;
}

/* Aviso de histórico bloqueado para guests */
.guest-history-notice {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;
}

.notice-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.notice-box svg {
    color: var(--gray);
    margin-bottom: 20px;
}

.notice-box h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.notice-box p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.notice-box ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    list-style: none;
    padding: 0;
}

.notice-box ul li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--dark);
}

.notice-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-login-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px 35px;
    background: white;
    color: var(--dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-login-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.btn-login-large svg {
    flex-shrink: 0;
}

.notice-box small {
    display: block;
    margin-top: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

#urlInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.error-message {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
    animation: shake 0.5s ease;
}

/* Resultado */
.result-section {
    animation: fadeInUp 0.6s ease;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

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

.result-card h2 {
    color: var(--success-color);
    margin: 0;
    text-align: center;
    flex: 1;
}

.btn-close-result {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-result:hover {
    background: var(--light-gray);
    color: var(--danger-color);
    transform: scale(1.1);
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.url-display label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.url-box {
    display: flex;
    gap: 10px;
}

.url-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--light-gray);
}

.url-box.original input {
    color: var(--gray);
    font-size: 0.9rem;
}

.btn-copy, .btn-download {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover, .btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.qr-code-container {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
}

.qr-code-container label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark);
}

.qr-code-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 3px solid white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-new {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Lista de URLs */
.urls-list {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

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

.list-header h2 {
    color: var(--dark);
}

.btn-refresh {
    padding: 10px 20px;
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-refresh:hover {
    background: var(--border);
    transform: rotate(360deg) scale(1.1);
}

.urls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.url-item {
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.url-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.url-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
    gap: 10px;
}

.url-info {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.url-description {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding: 5px 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.url-short {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.url-original {
    font-size: 0.9rem;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

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

.btn-icon {
    padding: 8px 12px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-icon:hover {
    transform: translateY(-2px);
}

.btn-icon.delete {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

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

.url-item-footer {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--gray);
}

.loading {
    text-align: center;
    color: var(--gray);
    padding: 30px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.empty-state p {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Busca e Filtros */
.search-filter-container {
    margin-bottom: 20px;
}

.search-bar {
    margin-bottom: 15px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-bar select {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.filters-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-clear-filters {
    padding: 10px 20px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination button {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-info {
    color: var(--gray);
    font-weight: 600;
    padding: 0 10px;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger-color);
    transform: scale(1.1);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--dark);
}

.stats-modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-modal-content .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.stats-modal-content .stat-row label {
    font-weight: 600;
    color: var(--gray);
}

.stats-modal-content .stat-row .value {
    font-weight: 600;
    color: var(--primary-color);
}

/* PDF Customizer Modal */
.pdf-customizer {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.5rem;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.pdf-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--light-gray);
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.checkbox-option:hover {
    background: #e5e7eb;
    border-color: var(--primary-color);
}

.checkbox-option.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.checkbox-option.drag-over {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.02);
}

.drag-handle {
    color: var(--gray);
    font-size: 1.2rem;
    cursor: grab;
    line-height: 1;
    user-select: none;
    padding: 0 5px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.checkbox-option:hover .drag-handle {
    opacity: 1;
    color: var(--primary-color);
}

.checkbox-option.dragging .drag-handle {
    cursor: grabbing;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.option-label {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
    user-select: none;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 2px solid var(--border);
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--light-gray);
    color: var(--dark);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    opacity: 0.9;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 200px;
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header-title {
        text-align: center;
    }

    .user-section {
        width: 100%;
        justify-content: center;
    }

    .btn-login {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .user-dropdown {
        right: 50%;
        transform: translateX(50%);
    }

    .input-group {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .url-box {
        flex-direction: column;
    }

    .btn-copy, .btn-download {
        width: 100%;
    }

    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .btn-refresh {
        width: 100%;
    }

    .url-item-header {
        flex-direction: column;
    }

    .url-info {
        width: 100%;
        max-width: 100%;
    }

    .url-short,
    .url-original,
    .url-description {
        max-width: 100%;
        overflow: hidden;
    }

    .url-actions {
        width: 100%;
        justify-content: space-between;
    }

    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}
