/* ============================== Animation Keyframes ============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================== Animation Classes ============================== */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

main {
    width: 1000px;
    margin: 4rem auto 0;
    padding: 30px;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.55;
}

/***************************************** Breadcrumbs section ******************************************/
.breadcrumbs {
    font-size: 14px;
    margin: 20px 0;
    padding-bottom: 18px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #2563eb, #60a5fa, #2563eb) 1;
    color: #555;
}

.breadcrumbs a {
    color: #0b3d91;
    text-decoration: none;
    margin: 0 6px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #333;
    margin-left: 5px;
    cursor: default;
}

/***************************************** Profile Layout ******************************************/
.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-top: 2rem;
}

/***************************************** Left Column - Profile Info ******************************************/
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: linear-gradient(135deg, #eef6ff 0%, #f0f7ff 100%);
    border: 1px solid #dce7f9;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 6px 20px rgba(11,61,145,0.06);
    text-align: center;
}

.avatar-section {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #c7daf9;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: #0b3d91;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-upload-btn:hover {
    background: #093372;
    transform: scale(1.1);
}

.avatar-upload-btn svg {
    color: #fff;
    width: 20px;
    height: 20px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b3d91;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-follow-profile {
    padding: 6px 12px;
    background: #0b3d91;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-follow-profile:hover {
    background: #093372;
    transform: translateY(-1px);
}

.btn-share-profile {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #c7daf9;
    border-radius: 8px;
    color: #0b3d91;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-share-profile:hover {
    background: #eef6ff;
    transform: translateY(-1px);
}

.btn-follow-profile svg,
.btn-share-profile svg {
    width: 20px ;
    height: 20px ;
}

.profile-details {
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(11,61,145,0.06);
}

.detail-item {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.detail-item svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.detail-item i {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 2px;
    font-weight: bold;
}

.detail-value {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    color: #555;
    white-space: pre-line;
    word-wrap: break-word;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.social-link {
    padding: 4px 8px;
    background: #eef6ff;
    border: 1px solid #c7daf9;
    border-radius: 6px;
    color: #0b3d91;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #dce7f9;
}

.stats-card {
    display: none;
    background: linear-gradient(135deg, #eef6ff 0%, #f0f7ff 100%);
    border: 1px solid #dce7f9;
    box-shadow: 0 6px 20px rgba(11,61,145,0.06);
    border-radius: 12px;
    padding: 20px;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #0b3d91;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-title svg {
    width: 23px;
    height: 23px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #0b3d91;
    display: block;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/***************************************** Right Column - Upload History ******************************************/
.upload-history {
    display: flex;
    flex-direction: column;
}

.category-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab.active {
    color: #0b3d91;
    border-bottom-color: #0b3d91;
}

.tab:hover {
    color: #0b3d91;
}

.history-title {
    font-size: 20px;
    font-weight: 700;
    color: #0b3d91;
    margin: 1rem 0 0.5rem 5px;
}

.Total-cards {
    font-size: 15px;
    font-weight: bold;
    color: #6c757d;
    margin: 0 0 10px 5px;
}

.filter-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.left-controls {
    display: flex;
    gap: 16px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #0b3d91;
    box-shadow: 0 0 0 2px rgba(11,61,145,0.1);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container svg {
    position: absolute;
    left: 10px;
    color: #6c757d;
    width: 16px;
    height: 16px;
}

.search-container .search-box {
    padding-left: 35px;
    padding-right: 10px;
}

.search-box {
    padding: 9px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    width: 130px;
}

.search-box:focus {
    outline: none;
    border-color: #0b3d91;
    box-shadow: 0 0 0 2px rgba(11,61,145,0.1);
}

/***************************************** Card section ******************************************/
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin: 1rem 0;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.title-wrap {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.title a {
    text-decoration: none;
    color: #0b3d91;
    font-size: 16px;
    font-weight: 700;
}

.title a:hover {
    text-decoration: underline;
}

.card-actions {
    display: flex;
    gap: 4px;
}

.favorite-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.favorite-btn {
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: #fef3c7 ;
    border-color: #fbbf24 ;
    color: #f59e0b ;
}

.favorite-btn.favorited {
    color: #f59e0b ;
    background: #fef3c7 ;
    border-color: #fbbf24 ;
}

.favorite-btn.favorited:hover {
    background: #fde047 ;
    border-color: #eab308 ;
    color: #a16207 ;
}

.meta {
    display: flex;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
    margin-top: 5px;
}

.meta span {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desc {
    color: #555;
    font-size: 14px;
    line-height: 1.45;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desc.clamp-4 {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.desc.clamp-5 {
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: -3px;
}

.foot {
    margin-top: auto;
}

.badge {
    padding: 5px 10px;
    border-radius: 50px;
    background: #eef6ff;
    border: 1px solid #c7daf9;
    font-size: 12px;
    color: #0b3d91;
    text-decoration: none;
    cursor: default;
    transition: all 0.2s ease;
}

.badge:hover {
    background: #dce7f9;
}

/***************************************** Pagination ******************************************/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination button:hover {
    background: #f3f4f6;
}

.pagination button.active {
    background: #0b3d91;
    color: #fff;
    border-color: #0b3d91;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/***************************************** Statistics Section ******************************************/
.statistics-content {
    display: none;
}

.statistics-content.active {
    display: block;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.overview-card.blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-color: #bae6fd;
}

.overview-card.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #6ee7b7;
}

.overview-card.yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.overview-card.pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f9a8d4;
}

.overview-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.overview-card.blue .overview-number {
    color: #0369a1;
}

.overview-card.green .overview-number {
    color: #059669;
}

.overview-card.yellow .overview-number {
    color: #d97706;
}

.overview-card.pink .overview-number {
    color: #db2777;
}

.overview-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.activity-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.activity-header {
    font-size: 18px;
    font-weight: 600;
    color: #0b3d91;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #f3f4f6;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.activity-icon.yellow {
    background: #fef3c7;
    color: #f59e0b;
}

.activity-icon.purple {
    background: #ede9fe;
    color: #8b5cf6;
}

.activity-icon.green {
    background: #d1fae5;
    color: #10b981;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #9ca3af;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* Toast notification animation */
@keyframes slideIn {
    from {
    transform: translateX(100%);
    opacity: 0;
    }
    to {
    transform: translateX(0);
    opacity: 1;
    }
}