/* Custom My Account Page Styles */

.custom-my-account-wrapper {
    background: #f9fafb;
    min-height: 100vh;
    padding: 40px 20px;
}

.custom-my-account-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.custom-account-sidebar {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.custom-user-profile {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.custom-user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #5CB3C4;
}

.custom-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.custom-user-info p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    word-break: break-word;
}

/* Navigation */
.custom-account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #6c757d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.custom-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.custom-nav-item span:not(.custom-badge) {
    flex: 1;
}

.custom-nav-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.custom-nav-item.active {
    background: linear-gradient(135deg, #5CB3C4 0%, #4a9fb0 100%);
    color: white;
}

.custom-nav-item.custom-logout {
    color: #dc3545;
    margin-top: 10px;
}

.custom-nav-item.custom-logout:hover {
    background: #fee;
}

.custom-badge {
    background: rgba(92, 179, 196, 0.15);
    color: #5CB3C4;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.custom-nav-item.active .custom-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Main Content */
.custom-account-main {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

.custom-tab-content {
    display: none;
}

.custom-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 20px;
}

.custom-tab-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.custom-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.custom-search-input {
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    outline: none;
    transition: border-color 0.3s;
}

.custom-search-input:focus {
    border-color: #5CB3C4;
}

.custom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-btn-primary {
    background: #5CB3C4;
    color: white;
}

.custom-btn-primary:hover {
    background: #4a9fb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 179, 196, 0.3);
}

.custom-btn-clear-all {
    background: #dc3545;
    color: white;
}

.custom-btn-clear-all:hover {
    background: #c82333;
}

/* Downloads Grid */
.custom-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.custom-download-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.custom-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.custom-delete-download {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.custom-download-card:hover .custom-delete-download {
    opacity: 1;
    transform: scale(1);
}

.custom-delete-download:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.custom-download-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
}

.custom-download-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-download-card:hover .custom-download-image img {
    transform: scale(1.05);
}

.custom-download-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(92, 179, 196, 0.95);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.custom-download-content {
    padding: 16px;
}

.custom-download-category {
    font-size: 12px;
    color: #5CB3C4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.custom-download-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.custom-download-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.custom-download-title a:hover {
    color: #5CB3C4;
}

.custom-download-date {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-download-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.custom-btn-redownload,
.custom-btn-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-btn-redownload {
    background: #5CB3C4;
    color: white;
}

.custom-btn-redownload:hover {
    background: #4a9fb0;
}

.custom-btn-view {
    background: #f8f9fa;
    color: #6c757d;
}

.custom-btn-view:hover {
    background: #e9ecef;
    color: #2c3e50;
}

/* Empty State */
.custom-empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.custom-empty-state i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.custom-empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.custom-empty-state p {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 30px 0;
}

/* Statistics */
.custom-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.custom-stat-card {
    background: linear-gradient(135deg, #5CB3C4 0%, #4a9fb0 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(92, 179, 196, 0.2);
}

.custom-stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.custom-stat-details {
    flex: 1;
}

.custom-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.custom-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Recent Activity */
.custom-recent-activity {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.custom-recent-activity h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.custom-activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.custom-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.custom-activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5CB3C4 0%, #4a9fb0 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.custom-activity-content {
    flex: 1;
}

.custom-activity-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #2c3e50;
}

.custom-activity-date {
    font-size: 12px;
    color: #6c757d;
}

.custom-activity-badge {
    background: #5CB3C4;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.custom-no-activity {
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

/* Settings */
.custom-settings-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.custom-settings-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.custom-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.custom-info-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.custom-info-item p {
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .custom-my-account-container {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .custom-account-sidebar {
        padding: 20px;
    }

    .custom-account-main {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .custom-my-account-wrapper {
        padding: 20px 15px;
    }

    .custom-my-account-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .custom-account-sidebar {
        position: relative;
        top: 0;
    }

    .custom-account-main {
        padding: 25px 20px;
    }

    .custom-tab-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-header-actions {
        width: 100%;
        flex-direction: column;
    }

    .custom-search-input {
        width: 100%;
    }

    .custom-downloads-grid {
        grid-template-columns: 1fr;
    }

    .custom-stats-grid {
        grid-template-columns: 1fr;
    }

    .custom-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .custom-tab-header h2 {
        font-size: 22px;
    }

    .custom-download-actions {
        flex-direction: column;
    }

    .custom-activity-item {
        flex-wrap: wrap;
    }
}