/* Webify Projects - Additional Styles */
body {
    font-family: 'Manrope', 'Heebo', sans-serif;
}

/* Custom scrollbar for sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #67138633;
    border-radius: 10px;
}

/* Smooth tab transitions */
.webify-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.webify-tab-content.hidden {
    display: none;
}

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

/* Iframe responsive transition */
#design-preview-iframe {
    display: block;
    transition: max-width 0.3s ease;
}

/* Iframe container fills available space */
#iframe-container {
    min-height: 0;
}

/* ======================== */
/* Device Frames            */
/* ======================== */
.device-frame {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.device-frame .device-notch,
.device-frame .device-home-bar {
    display: none;
}

.device-frame .device-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Desktop - no frame, fill entire container */
.device-frame.device-none {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: #fff;
    padding: 0;
    box-shadow: none;
}

.device-frame.device-none .device-screen {
    width: 100%;
    height: 100%;
}

/* iPad frame */
.device-frame.device-ipad {
    width: 820px;
    height: 90%;
    max-height: 1100px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 24px 18px;
    box-shadow:
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px #444;
    margin: 20px auto;
}

.device-frame.device-ipad .device-notch {
    display: block;
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 12px;
    box-shadow: inset 0 0 0 1px #444;
}

.device-frame.device-ipad .device-screen {
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
}

.device-frame.device-ipad .device-home-bar {
    display: block;
    width: 100px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    margin: 12px auto 0;
}

/* iPhone frame */
.device-frame.device-iphone {
    width: 390px;
    height: 85%;
    max-height: 844px;
    background: #1a1a1a;
    border-radius: 48px;
    padding: 16px 12px;
    box-shadow:
        0 0 0 2px #333,
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px #444;
    margin: 20px auto;
}

.device-frame.device-iphone .device-notch {
    display: block;
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    margin: 0 auto 8px;
    position: relative;
    z-index: 2;
}

.device-frame.device-iphone .device-notch::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.device-frame.device-iphone .device-screen {
    border-radius: 32px;
    overflow: hidden;
    flex: 1;
}

.device-frame.device-iphone .device-home-bar {
    display: block;
    width: 120px;
    height: 5px;
    background: #555;
    border-radius: 3px;
    margin: 10px auto 0;
}
