/* Dashboard Body Styles Only */
.main-content {
    background: #0b0b0b;
    min-height: 100vh;
    padding: 20px 0;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.user-info>div {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: #e8e8e8;
}

.user-email {
    font-size: 12px;
    color: #9aa0a6;
}

/* Token Card Gradient Line */
.token-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3b30, #ff6b30, #ff3b30);
}

/* Token Card Header */
.token-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.token-card-header i {
    color: #ff3b30;
    font-size: 24px;
}

.token-card-header h3 {
    color: #e8e8e8;
    margin: 0;
    font-size: 20px;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-secondary {
    background: #ff3b30;
    color: #fff;
    border: 1px solid #ff3b30;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #9aa0a6;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-radius: 50%;
    border-top-color: #ff3b30;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.loading-state p {
    margin: 0;
}

/* Footer Styles */
.footer-bottom {
    margin-bottom: 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: #e8e8e8;
    margin-bottom: 10px;
    font-size: 32px;
}

.user-info-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Token Card */
.token-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #ff3b30;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff3b30, #ff6b30, #ff3b30);
}

.token-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.token-header i {
    color: #ff3b30;
    font-size: 24px;
}

.token-header h3 {
    color: #e8e8e8;
    margin: 0;
    font-size: 20px;
}

.token-balance {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.token-amount {
    font-size: 48px;
    font-weight: bold;
    color: #ff3b30;
    text-shadow: 0 0 20px rgba(255, 59, 48, 0.3);
}

.token-label {
    font-size: 18px;
    color: #ccc;
    font-weight: 500;
}

.token-info {
    text-align: center;
}

.token-info p {
    color: #9aa0a6;
    font-size: 14px;
    margin: 0;
}

/* Upload Section */
.upload-section {
    background: #121212;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #232323;
}

.category-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    background: #1e1e1e;
    color: #e8e8e8;
    border: 1px solid #232323;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

/* Recent Uploads */
.recent-uploads {
    background: #121212;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #232323;
}

.recent-uploads h3 {
    color: #e8e8e8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-uploads h3 i {
    color: #ff3b30;
    font-size: 20px;
}

.upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #232323;
}

.upload-item:last-child {
    border-bottom: none;
}

.upload-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #ff3b30;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.file-details h4 {
    margin: 0 0 5px 0;
    color: #e8e8e8;
    font-size: 14px;
}

.file-details p {
    margin: 0;
    color: #9aa0a6;
    font-size: 12px;
}

.upload-item-id {
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 2px;
}

.upload-hash {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.upload-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn.blockchain {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.status-success {
    background: #d4edda;
    color: #155724;
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Category Button Hover Effects */
.category-btn:hover,
.category-btn.active {
    background: #ff3b30 !important;
    color: white !important;
    border-color: #ff3b30 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.category-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.2);
}

/* Blockchain Button Hover */
.action-btn.blockchain:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.blockchain:disabled {
    background: #4a4a4a !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Action Buttons */
.btn-primary:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: #e63429 !important;
    border-color: #e63429 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px !important;
    }

    .category-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .category-btn {
        min-width: 200px !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    .upload-item {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .upload-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .token-balance {
        flex-direction: column !important;
        gap: 5px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .token-amount {
        font-size: 36px !important;
        text-align: center !important;
    }

    .token-label {
        text-align: center !important;
    }

    .token-info {
        text-align: center !important;
    }

    /* Token başlığını mobilde ortala */
    .token-header {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Token card içindeki başlık div'ini ortala - SERT YÖNTEM */
    .token-card>div:first-child {
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Token card içindeki tüm div'leri ortala */
    .token-card div[style*="display: flex"] {
        justify-content: center !important;
    }

    /* Recent Registrations başlığını mobilde ortala */
    .recent-uploads h3 {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Kullanıcı bilgilerini mobilde ortala */
    .user-info {
        justify-content: center !important;
        text-align: center !important;
    }

    .user-name,
    .user-email {
        text-align: center !important;
    }

    .action-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 200px !important;
    }
}