
* {
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
}

main {
    flex: 1 0 auto;
}

.container {
    margin-top: 20px;
    padding-bottom: 50px;
}

/* Tabs */
.tab-content {
    display: none;
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Cards */
.card {
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.card.hoverable:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 500;
    color: #1976d2;
    font-size: 1.8rem;
}

/* File Upload Area */
.file-upload-area {
    border: 3px dashed #1976d2;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: rgba(25, 118, 210, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #1565c0;
    background: rgba(25, 118, 210, 0.1);
    transform: scale(1.02);
}

.file-upload-area.dragover {
    border-color: #0d47a1;
    background: rgba(25, 118, 210, 0.2);
    transform: scale(1.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area i {
    color: #1976d2;
    margin-bottom: 10px;
}

.file-upload-area p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* File Preview */
.file-preview-container {
    margin-top: 20px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    background: #e3f2fd;
}

.file-preview-item i {
    margin-right: 10px;
    color: #1976d2;
}

.file-preview-item .file-info {
    flex: 1;
}

.file-preview-item .file-name {
    font-weight: 500;
    color: #333;
}

.file-preview-item .file-size {
    font-size: 0.9rem;
    color: #666;
}

.file-preview-item .remove-file {
    color: #f44336;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.file-preview-item .remove-file:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* Buttons */
.btn {
    margin: 10px 5px;
    border-radius: 8px;
    text-transform: none;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 0 32px;
    height: 54px;
    line-height: 54px;
}

/* Shared Items Grid */
.shared-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.shared-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shared-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.shared-item.text-item {
    border-left: 4px solid #4caf50;
}

.shared-item.file-item {
    border-left: 4px solid #ff9800;
}

.shared-item.image-item {
    border-left: 4px solid #e91e63;
}

.shared-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.shared-item-header i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.shared-item-title {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.shared-item-content {
    margin-bottom: 15px;
}

.shared-item-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.shared-item-image {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.shared-item-image:hover {
    transform: scale(1.05);
}

.shared-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

.shared-item-actions {
    display: flex;
    gap: 10px;
}

.shared-item-actions a {
    color: #1976d2;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.shared-item-actions a:hover {
    background: rgba(25, 118, 210, 0.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal */
.modal {
    border-radius: 12px;
    overflow: hidden;
}

.modal .modal-content {
    padding: 0;
}

.modal .modal-footer {
    background: #f5f5f5;
}

/* Responsive */
@media only screen and (max-width: 600px) {
    .shared-items-grid {
        grid-template-columns: 1fr;
    }
    
    .file-upload-area {
        padding: 20px;
    }
    
    .btn-large {
        width: 100%;
        margin: 5px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shared-item {
    animation: fadeIn 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}



/* Estatísticas */
.stat-item {
    text-align: center;
    padding: 20px 10px;
}

.stat-item h5 {
    font-size: 2.5rem;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.stat-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Gráfico de Formatos */
.format-chart {
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.format-item {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
    border-left: 4px solid #1976d2;
}

.format-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.format-item .format-name {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.format-item .format-count {
    color: #1976d2;
    font-size: 1.5rem;
    font-weight: bold;
}

.format-item .format-percentage {
    color: #666;
    font-size: 0.8rem;
}

/* Botões de Compartilhamento */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy-link {
    background: #666;
}

.share-btn.download {
    background: #ff9800;
}

/* Responsivo para estatísticas */
@media only screen and (max-width: 600px) {
    .stat-item h5 {
        font-size: 2rem;
    }
    
    .format-chart {
        flex-direction: column;
    }
    
    .format-item {
        width: 100%;
        max-width: 200px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

