/* Phone Device Bezel and Container */
.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.phone-device {
    width: 360px;
    height: 740px;
    background-color: #0f172a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 4px #334155;
    position: relative;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-device:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.35), 0 0 0 4px #10b981;
}

/* Camera Notch / Dynamic Island */
.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background-color: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Inner Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f7f9fc;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    color: #1e293b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid #1e293b;
}

/* Status Bar */
.phone-status-bar {
    height: 38px;
    padding: 10px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    z-index: 5;
    background-color: transparent;
}

.phone-status-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
}

.phone-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Screen Scrollable Content */
.phone-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 18px 70px 18px;
    scrollbar-width: none; /* Firefox */
}

.phone-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* App Header inside Phone */
.phone-app-header {
    margin: 10px 0 20px 0;
}

.phone-app-header h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* Orange Focus Card */
.phone-focus-card {
    background: linear-gradient(135deg, #ff6b4a 0%, #ff5232 100%);
    border-radius: 20px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(255, 82, 50, 0.3);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.phone-focus-card.inactive {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 10px 20px -5px rgba(100, 116, 139, 0.3);
}

.focus-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.focus-card-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.focus-card-text h6 {
    margin: 0 0 2px 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.focus-card-text p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Custom Switch Toggle button */
.focus-toggle-btn {
    background-color: #ffffff;
    color: #ff5232;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.phone-focus-card.inactive .focus-toggle-btn {
    color: #64748b;
}

.focus-toggle-btn:active {
    transform: scale(0.95);
}

/* White Usage Card */
.phone-usage-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 25px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-card-left {
    display: flex;
    flex-direction: column;
}

.usage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.usage-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.usage-limit-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ff5232;
}

.usage-time {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0;
    line-height: 1;
}

.usage-time-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

/* Donut Chart Indicator */
.usage-chart-ring {
    width: 65px;
    height: 65px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-chart-ring svg {
    transform: rotate(-90deg);
}

.usage-chart-ring circle {
    fill: none;
    stroke-width: 6;
}

.usage-chart-ring .ring-bg {
    stroke: #e2e8f0;
}

.usage-chart-ring .ring-fill {
    stroke: #ff5232;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* Top Apps List */
.phone-apps-section h5 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 15px;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.2s ease;
}

.app-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.app-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-container i {
    font-size: 1.5rem;
}

.app-icon-container.telegram {
    color: #229ED9;
    background-color: #e0f2fe;
}

.app-icon-container.whatsapp-biz {
    color: #128C7E;
    background-color: #d1fae5;
}

.app-icon-container.whatsapp {
    color: #25D366;
    background-color: #dcfce7;
}

.app-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-name {
    color: #334155;
}

.app-duration {
    color: #0f172a;
}

.app-progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.app-progress-fill {
    height: 100%;
    border-radius: 3px;
    width: 0; /* Animated via JQuery */
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-progress-fill.orange {
    background-color: #ff5232;
}

.app-progress-fill.grey {
    background-color: #94a3b8;
}

/* Bottom Navigation Bar inside Phone */
.phone-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 8px;
    z-index: 10;
}

.nav-item-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 12px;
}

.nav-item-phone i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.nav-item-phone.active {
    color: #ff5232;
}

.nav-item-phone:hover i {
    transform: translateY(-2px);
}

/* Mock Screen Pages */
.phone-mock-page {
    display: none;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    animation: fade mockPageIn 0.3s ease;
}

@keyframes mockPageIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.phone-mock-page i {
    font-size: 3.5rem;
    color: #ff5232;
    margin-bottom: 15px;
}

.phone-mock-page h5 {
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.phone-mock-page p {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 220px;
    margin: 0;
}
