/* ===================================
   Dashboard Page - Complete Styles
   =================================== */

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

/* ===================================
   PROFILE CARD
   =================================== */
.profile-card {
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.25);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: slideInLeft 0.6s ease;
    position: relative;
    overflow: hidden;
}

.profile-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-skin {
    width: 180px;
    height: auto;
    margin: 0 auto 25px;
    display: block;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 15px;
    border: 3px solid rgba(0, 150, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.profile-skin:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.7);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.profile-name {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.profile-details {
    margin-top: 35px;
    position: relative;
    z-index: 1;
}

.profile-detail {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 150, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.profile-detail:hover {
    background: rgba(0, 150, 255, 0.08);
    transform: translateX(5px);
}

.profile-detail:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===================================
   REPORTING MANAGER INLINE STYLE
   =================================== */
.manager-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.manager-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(6, 182, 212, 0.3);
    image-rendering: pixelated;
    object-fit: cover;
}

.manager-name-inline {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
}

/* LOA Status Badge */
.loa-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: fit-content;
}

.loa-status-badge.loa-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.loa-status-badge.loa-none {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===================================
   NOTES CONTAINER
   =================================== */
.notes-container {
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.25);
    border-radius: 25px;
    padding: 40px 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.6s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 650px;
}

.notes-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 150, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.notes-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notes-title i {
    color: var(--primary);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.notes-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 150, 255, 0.15);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.notes-counter i {
    font-size: 1rem;
}

/* Notes list container */
.notes-list-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    max-height: 450px;
    width: 100%;
}

.notes-list-dashboard::-webkit-scrollbar {
    width: 8px;
}

.notes-list-dashboard::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.notes-list-dashboard::-webkit-scrollbar-thumb {
    background: rgba(0, 150, 255, 0.4);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.notes-list-dashboard::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 150, 255, 0.6);
}

/* Note card */
.note-card-dashboard {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.12) 0%, rgba(0, 150, 255, 0.06) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-left: 5px solid var(--primary);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.note-card-dashboard:hover {
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.18) 0%, rgba(0, 150, 255, 0.09) 100%);
}

/* Note card header */
.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.note-author-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.note-author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    border: 2px solid rgba(0, 150, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.note-author-avatar i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Note author Minecraft skin */
.note-author-skin {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    image-rendering: pixelated;
}

.note-author-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.note-author-name {
    color: var(--text);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.note-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 150, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.note-date i {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Note content - FIXED FOR PROPER SCROLLING */
.note-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 15px 0 5px 0;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
    margin-top: 10px;
    /* ALWAYS show full content with scroll */
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    padding-right: 10px;
}

/* Custom scrollbar for note content */
.note-content::-webkit-scrollbar {
    width: 6px;
}

.note-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.note-content::-webkit-scrollbar-thumb {
    background: rgba(0, 150, 255, 0.4);
    border-radius: 3px;
}

.note-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 150, 255, 0.6);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(0, 150, 255, 0.2);
    position: relative;
    z-index: 1;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.3) 0%, rgba(0, 212, 255, 0.2) 100%);
    border-color: var(--primary);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.pagination-page {
    width: 40px;
    height: 40px;
    background: rgba(0, 150, 255, 0.1);
    border: 2px solid rgba(0, 150, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.pagination-page:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: rgba(0, 150, 255, 0.4);
}

.pagination-page.active {
    background: linear-gradient(135deg, #0096ff 0%, #00d4ff 100%);
    border-color: transparent;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0, 150, 255, 0.4);
}

/* Empty State */
.notes-empty-state {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-muted);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon-wrapper {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
    border: 3px solid rgba(0, 150, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.empty-icon-wrapper i {
    font-size: 4rem;
    color: rgba(0, 150, 255, 0.4);
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.3));
}

.notes-empty-state h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notes-empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    background: linear-gradient(145deg, rgba(13, 31, 45, 0.95) 0%, rgba(26, 58, 82, 0.85) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 150, 255, 0.25);
    border-radius: 25px;
    padding: 40px 35px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(0, 150, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.stats-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.stats-period {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 150, 255, 0.15);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.stats-period i {
    font-size: 1rem;
}

.stats-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-card-full {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 20px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-full:hover::before {
    opacity: 1;
}

.stat-card-full:hover {
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 150, 255, 0.3);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 3px solid rgba(0, 150, 255, 0.4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stat-card-full:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.4);
}

.stat-icon-wrapper.gamepad {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(199, 125, 255, 0.1) 100%);
    border-color: rgba(157, 78, 221, 0.4);
}

.stat-icon-wrapper.tickets {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-icon-wrapper.playtime {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(252, 211, 77, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.4);
}

.stat-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.stat-icon-wrapper.gamepad i {
    color: #c77dff;
}

.stat-icon-wrapper.tickets i {
    color: #34d399;
}

.stat-icon-wrapper.playtime i {
    color: #fcd34d;
}

.stat-info {
    position: relative;
    z-index: 1;
    width: 100%;
}

.stat-label-full {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.stat-value-full {
    color: var(--text);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(0, 212, 255, 0.6) 100%);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.stat-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .notes-container {
        min-height: 500px;
    }

    .stats-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .stats-grid-full {
        grid-template-columns: 1fr;
    }

    .note-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .note-date {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .profile-card {
        padding: 30px 25px;
    }

    .profile-skin {
        width: 150px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .notes-container {
        padding: 30px 25px;
        min-height: 400px;
    }

    .notes-title {
        font-size: 1.6rem;
    }

    .note-card-dashboard {
        padding: 20px;
    }

    .stats-section {
        padding: 30px 25px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stat-card-full {
        padding: 28px 25px;
    }

    .stat-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .stat-icon-wrapper i {
        font-size: 2rem;
    }

    .stat-value-full {
        font-size: 2.5rem;
    }

    .stats-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .pagination-pages {
        gap: 6px;
    }

    .pagination-page {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .pagination-btn {
        width: 40px;
        height: 40px;
    }

    .note-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}