/* Global Styles */
:root {
    --primary: #3D80F7;
    --primary-light: #69a0ff;
    --primary-dark: #1a5fd6;
    --secondary: #FF6B6B;
    --text-dark: #212121;
    --text-medium: #757575;
    --text-light: #9E9E9E;
    --background: #F5F7FA;
    --background-card: #FFFFFF;
    --success: #4CAF50;
    --warning: #FFC107;
    --error: #F44336;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #EAEDF2;
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 2rem 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-medium);
}

.prototype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.screen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-container h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* iPhone 15 Pro style device frame */
.device {
    width: 390px;
    height: 844px;
    background-color: white;
    border-radius: 45px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 10px solid #1A1A1A;
    display: flex;
    flex-direction: column;
}

/* Status bar styling */
.status-bar {
    height: 44px;
    background-color: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.device iframe {
    flex: 1;
    width: 100%;
    height: calc(100% - 44px);
    border: none;
}

/* For screens with a bottom navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    background-color: var(--background-card);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 15px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 10px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Common App Components */
.app-container {
    background-color: var(--background);
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.app-header {
    background-color: var(--primary);
    color: white;
    padding: 20px 15px;
    position: relative;
}

.app-content {
    padding: 15px;
}

.card {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #ff5252;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(61, 128, 247, 0.1);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-medium);
    font-size: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}