/* Theme 2 Styles for Wingio Parental Control */

/* Global Styles */
.theme2 {
    overflow: visible !important;
}

.theme2 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.theme2 body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f9fafb;
}

.theme2 .theme2-hidden {
    display: none;
}

/* Animations */
.theme2 .theme2-animate-ping {
    animation: theme2-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes theme2-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.theme2 .animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Header Styles */
.theme2 .theme2-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.theme2 .theme2-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.theme2 .theme2-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .theme2 .theme2-header-content {
        padding: 0;
        gap: 0.25rem;
    }
    
    .theme2 .theme2-header-content > div:first-child {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .theme2 .theme2-header-content > div:first-child > div:first-child {
        /* Logo section */
        flex-shrink: 0;
    }
    
    .theme2 .theme2-header-content > div:last-child {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.theme2 .theme2-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.theme2 .theme2-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    display: none;
}

@media (min-width: 768px) {
    .theme2 .theme2-logo-text {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .theme2 .theme2-logo {
        width: 2rem;
        height: 2rem;
    }
}

.theme2 .theme2-kid-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.theme2 .theme2-kid-selector::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.theme2 .theme2-kid-selector > button {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
    max-width: 80px;
}

.theme2 .theme2-kid-selector > button > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    text-align: center;
}

@media (max-width: 767px) {
    .theme2 .theme2-kid-selector {
        gap: 0.5rem;
    }
    
    .theme2 .theme2-kid-selector > button {
        min-width: 55px;
        max-width: 75px;
    }
    
    .theme2 .theme2-kid-selector > button > span {
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    .theme2 .theme2-kid-selector {
        gap: 1rem;
    }
    
    .theme2 .theme2-kid-selector > button {
        min-width: 70px;
        max-width: 100px;
    }
}

.theme2 .theme2-kid-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.theme2 .theme2-kid-avatar:hover {
    transform: scale(1.05);
}

.theme2 .theme2-kid-avatar.active {
    border-color: #06b6d4;
}

/* Tooltip for full name on hover */
/*.theme2 .theme2-kid-selector > button:hover > span {
    position: absolute;
    white-space: normal;
    word-wrap: break-word;
    max-width: 150px;
    background: #111827;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    z-index: 1001;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-overflow: unset;
    overflow: visible;
}*/

.theme2 .theme2-kid-selector > button:hover > span::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #111827;
}

/* Navigation Styles */
.theme2 .theme2-nav {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    z-index: 999;
}

.theme2 .theme2-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.theme2 .theme2-nav-container::-webkit-scrollbar {
    height: 2px;
}

.theme2 .theme2-nav-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.theme2 .theme2-nav-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.theme2 .theme2-nav-tabs {
    display: flex;
    gap: 1.5rem;
    min-width: max-content;
}

.theme2 .theme2-nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.theme2 .theme2-nav-tab:hover {
    color: #06b6d4;
}

.theme2 .theme2-nav-tab.active {
    color: #06b6d4;
    border-bottom-color: #06b6d4;
}

/* Profile Card Styles */
.theme2 .theme2-profile-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.theme2 .theme2-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.theme2 .theme2-profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme2 .theme2-profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.theme2 .theme2-online-indicator {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid white;
}

.theme2 .theme2-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.theme2 .theme2-profile-rules {
    color: #e0f2fe;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.theme2 .theme2-last-update {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.theme2 .theme2-last-update-label {
    font-size: 0.75rem;
    color: #e0f2fe;
    font-weight: 500;
}

.theme2 .theme2-last-update-time {
    font-size: 0.875rem;
    color: white;
    font-weight: 700;
    white-space: nowrap;
}

/* Stats Grid */
.theme2 .theme2-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .theme2 .theme2-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.theme2 .theme2-stat-card {
    border: 1px solid;
    border-radius: 0.5rem;
    padding: 0.625rem;
    text-align: center;
}

.theme2 .theme2-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.theme2 .theme2-stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.125rem;
}

.theme2 .theme2-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Location & Chart Section */
.theme2 .theme2-location-chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .theme2 .theme2-location-chart-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme2 .theme2-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.theme2 .theme2-card-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.theme2 .theme2-card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.theme2 .theme2-card-body {
    padding: 1rem;
}

/* App & Category Usage Section */
.theme2 .theme2-usage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .theme2 .theme2-usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme2 .theme2-filter-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.theme2 .theme2-filter-btn {
    flex: 1;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.theme2 .theme2-filter-btn:hover {
    color: #111827;
}

.theme2 .theme2-filter-btn.active {
    background: white;
    color: #06b6d4;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.theme2 .theme2-usage-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.theme2 .theme2-usage-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme2 .theme2-usage-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme2 .theme2-usage-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.theme2 .theme2-usage-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
}

.theme2 .theme2-usage-time {
    font-size: 0.75rem;
    color: #6b7280;
}

.theme2 .theme2-usage-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.theme2 .theme2-progress-bar {
    width: 100%;
    height: 0.375rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.theme2 .theme2-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Footer Styles */
.theme2 .theme2-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 2rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .theme2 .theme2-footer {
        padding-bottom: 1.5rem;
    }
}

.theme2 .theme2-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.theme2 .theme2-footer-grid {
    display: none;
}

@media (min-width: 768px) {
    .theme2 .theme2-footer-grid {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem 2rem;
        margin-bottom: 1rem;
    }
}

.theme2 .theme2-footer-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .theme2 .theme2-footer-mobile {
        display: none;
    }
}

.theme2 .theme2-footer-section {
    flex-shrink: 0;
}

.theme2 .theme2-footer-title {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.theme2 .theme2-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.theme2 .theme2-footer-link {
    color: #d1d5db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.theme2 .theme2-footer-link:hover {
    color: #06b6d4;
}

.theme2 .theme2-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.theme2 .theme2-footer-copyright {
    border-top: 1px solid #374151;
    padding-top: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
}

/* Bottom Navigation (Mobile) */
.theme2 .theme2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    z-index: 30;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .theme2 .theme2-bottom-nav {
        display: none;
    }
}

.theme2 .theme2-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.theme2 .theme2-bottom-nav-item.active {
    color: #06b6d4;
}

.theme2 .theme2-bottom-nav-item .theme2-nav-icon {
    font-size: 1.5rem;
}

.theme2 .theme2-bottom-nav-item span {
    font-size: 0.75rem;
}

/* Mobile Menu Modal */
.theme2 .theme2-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.theme2 .theme2-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.theme2 .theme2-modal-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 70vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.theme2 .theme2-modal-panel.show {
    transform: translateY(0);
}

/* Notification Modal specific styles */
@media (max-width: 767px) {
    .theme2 .theme2-modal-panel[style*="top: 4rem"] {
        top: 4rem !important;
        bottom: auto !important;
        border-radius: 0 !important;
        max-height: calc(100vh - 4rem) !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(0) !important;
    }
}

@media (min-width: 768px) {
    .theme2 .theme2-modal-panel[style*="top: 4rem"] {
        position: fixed;
        top: 4rem !important;
        right: 1rem !important;
        left: auto !important;
        bottom: auto !important;
        max-width: 40rem !important;
        width: 40rem !important;
        border-radius: 0.5rem !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        transform: translateY(0) !important;
    }
}

.theme2 .theme2-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.theme2 .theme2-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.theme2 .theme2-modal-close {
    padding: 0.5rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.theme2 .theme2-modal-close:hover {
    background: #e5e7eb;
}

.theme2 .theme2-modal-content {
    overflow-y: auto;
    max-height: calc(70vh - 4rem);
    padding: 0.5rem 0;
    text-align: left;
}

.theme2 .theme2-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.theme2 .theme2-modal-item:hover {
    background: #f9fafb;
}

.theme2 .theme2-modal-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.theme2 .theme2-modal-item-text {
    flex: 1;
}

.theme2 .theme2-modal-item-title {
    font-weight: 600;
}

.theme2 .theme2-modal-item-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Utility Classes */
.theme2 .theme2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 5rem; /* Mobile: header (4rem) + gap */
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .theme2 .theme2-container {
        padding-top: 9rem; /* Desktop: header (4rem) + nav (4rem) + gap */
        padding-bottom: 2rem;
    }
}

.theme2 .theme2-text-cyan {
    color: #06b6d4;
}

.theme2 .theme2-bg-cyan {
    background-color: #06b6d4;
}

.theme2 .theme2-border-cyan {
    border-color: #06b6d4;
}