/* Base styles */
:root {
    --primary: #8A2BE2;     /* Vibrant purple */
    --secondary: #4B0082;   /* Deep indigo */
    --accent: #00CED1;      /* Teal accent */
    --dark: #121212;        /* Dark background */
    --darker: #0A0A0A;      /* Darker elements */
    --light: #E0E0E0;       /* Light text */
    --gray: #808080;        /* Gray elements */
    
    --gradient-bg: linear-gradient(145deg, var(--darker), var(--dark));
    --gradient-primary: linear-gradient(145deg, var(--primary), var(--secondary));
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
    --glow: 0 0 15px rgba(138, 43, 226, 0.4);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #1E1E1E;
    color: var(--light);
    line-height: 1.6;
}

/* Prototype layout */
.prototype-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.prototype-title {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.prototype-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--gray);
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
}

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

.screen-title {
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 500;
}

/* Device styling */
.device {
    width: 375px;
    height: 812px;
    background: var(--gradient-bg);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notch {
    position: absolute;
    width: 35%;
    height: 30px;
    background: var(--darker);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 5px 25px;
    background: transparent;
    position: relative;
    z-index: 5;
    height: 30px;
}

.time {
    font-weight: 600;
    font-size: 14px;
}

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

iframe {
    width: 100%;
    height: calc(100% - 30px);
    margin-top: 30px;
    border: none;
}

/* App-specific elements */
.tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray);
}

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

.tab-bar-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.tab-bar-item span {
    font-size: 12px;
}

/* Card elements */
.card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Input fields */
.input-field {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 14px 20px;
    color: var(--light);
    width: 100%;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

/* Avatar styles */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--dark);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Common text styles */
.heading {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.subheading {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.text-muted {
    color: var(--gray);
    font-size: 14px;
}