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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    background: #1c1c1e;
    height: 100vh;
    overflow: hidden;
    color: white;
}

.container {
    display: flex;
    height: 100vh;
}

.controls-panel {
    width: 320px;
    background: #2c2c2e;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #48484a;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.controls-panel h2 {
    margin-bottom: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.nav-link {
    font-size: 13px;
    color: #007aff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

.controls-panel h3 {
    margin: 24px 0 16px 0;
    color: #007aff;
    font-size: 16px;
    font-weight: 600;
    border-top: 1px solid #48484a;
    padding-top: 16px;
}

.controls-panel h3:first-of-type {
    border-top: none;
    padding-top: 0;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

.control-group input,
.control-group textarea,
.control-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #48484a;
    border-radius: 8px;
    font-size: 14px;
    background: #1c1c1e;
    color: white;
    margin-bottom: 8px;
}

.control-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.control-group textarea {
    resize: none;
    font-family: inherit;
    line-height: 1.4;
}

.control-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.control-group input:focus,
.control-group textarea:focus,
.control-group select:focus {
    outline: none;
    border-color: #007aff;
}

.control-group button {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #48484a;
    border-radius: 8px;
    background: #3a3a3c;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.control-group button:hover {
    background: #48484a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.control-group button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}



.remove-notification-btn {
    background: #ff3b30 !important;
    color: white !important;
    border: 1px solid #ff3b30 !important;
}

.remove-notification-btn:hover {
    background: #d70015 !important;
}


.phone-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    padding: 40px;
}

.iphone-14-pro {
    width: 393px;
    height: 852px;
    background: #1c1c1e;
    border-radius: 47px;
    position: relative;
    box-shadow: 
        0 0 0 1px #333336,
        0 0 0 3px #1c1c1e,
        0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

.dynamic-island {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: #000;
    border-radius: 19px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 393 852"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%2387CEEB"/><stop offset="100%" style="stop-color:%236BB6FF"/></linearGradient></defs><rect width="393" height="852" fill="url(%23bg)"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 33px 0 44px;
    height: 54px;
    position: relative;
    z-index: 5;
}

.status-left .carrier-name {
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.41px;
}

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

.network-type {
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.41px;
}

.signal-bars {
    display: flex;
    gap: 3px;
    align-items: end;
}

.signal-bars .bar {
    width: 3px;
    background: #000000;
    border-radius: 1px;
}

.signal-bars .bar:nth-child(1) { height: 4px; }
.signal-bars .bar:nth-child(2) { height: 6px; }
.signal-bars .bar:nth-child(3) { height: 8px; }
.signal-bars .bar:nth-child(4) { height: 10px; }

.wifi-icon svg {
    width: 15px;
    height: 11px;
}

.wifi-icon path {
    fill: #000000;
}

.battery {
    display: flex;
    align-items: center;
}

.battery-body {
    width: 24px;
    height: 11px;
    border: 1px solid #000000;
    border-radius: 2.5px;
    position: relative;
    background: #000000;
}

.battery-level {
    width: 18px;
    height: 7px;
    background: #000000;
    border-radius: 1.5px;
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
}

.battery-tip {
    width: 1.5px;
    height: 6px;
    background: #000000;
    border-radius: 0 1px 1px 0;
    margin-left: 2px;
}

.lock-screen-content {
    padding: 0 16px;
    height: calc(100% - 54px);
    display: flex;
    flex-direction: column;
}

.main-time-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
}

.main-time {
    font-size: 108px;
    font-weight: 200;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
    margin-top: 8px;
}

.main-date {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.notification-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.notification {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 18px;
    padding: 14px 16px 16px 16px;
    margin-bottom: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24);
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon-container {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 0;
    position: relative;
    overflow: visible;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8e8e93;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 400;
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.imessage-badge {
    position: absolute;
    bottom: -2px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

.imessage-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3px;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8.8px;
    object-fit: cover;
    background: #34c759;
}

#messageNotification .app-icon {
    border-radius: 50%;
    background: #8e8e93;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

#appNotification .app-icon {
    border-radius: 8.8px;
}

.notification-title {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.app-name {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1e;
    letter-spacing: -0.08px;
}

.notification-time {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 400;
    letter-spacing: 0px;
    margin-left: 8px;
}

.notification-body {
    margin-bottom: 8px;
}

.notification-body p {
    font-size: 14px;
    line-height: 1.33;
    color: #1c1c1e;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.08px;
}

.notification-source {
    margin-bottom: 8px;
}

.notification-source span {
    font-size: 12px;
    color: #8e8e93;
    font-weight: 400;
}

.bottom-icons {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.bottom-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.bottom-icon-svg {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.emoji-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(58, 58, 60, 0.3);
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
    opacity: 0.7;
}

.emoji-btn:hover {
    background: rgba(58, 58, 60, 0.6);
    opacity: 1;
    transform: scale(1.1);
}

.emoji-btn-inline {
    background: #3a3a3c;
    border: 1px solid #48484a;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1px;
    display: inline-block;
    width: auto;
}

.emoji-btn-inline:hover {
    background: #48484a;
    transform: scale(1.05);
}

.emoji-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.emoji-modal-content {
    background: #2c2c2e;
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.emoji-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emoji-category h4 {
    color: #007aff;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.emoji-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.emoji-header h3 {
    margin: 0;
    font-size: 18px;
}

.emoji-close {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.emoji-close:hover {
    color: white;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.emoji-item {
    background: none;
    border: 1px solid #48484a;
    border-radius: 6px;
    padding: 12px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.emoji-item:hover {
    background: #3a3a3c;
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .controls-panel {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #48484a;
    }
    
    .phone-container {
        flex: 1;
        padding: 20px;
    }
    
    .iphone-14-pro {
        transform: scale(0.7);
    }
}

@media (max-width: 768px) {
    .iphone-14-pro {
        transform: scale(0.5);
    }
    
    .controls-panel {
        height: 250px;
    }
}