.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.form-box {
  width: 600px;
  background: #fff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.input, .input-color {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.input:focus {
  border-color: #6a11cb;
  outline: none;
}

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn.cancel {
  background: #bbb;
}

.image-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.img-card {
  position: relative;
}

.img-card img {
  border-radius: 8px;
  border: 1px solid #ddd;
}

.remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: #fff;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 50%;
  text-decoration: none;
}


.app-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-control {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.image-previews {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.image-box {
  text-align: center;
}



/* home page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --soft-red: #e86a5f;
    --soft-green: #5bb98c;
    --soft-gold: #e9c46a;
    --cream: #f8f4e9;
    --light-gray: #f5f5f5;
    --dark-green: #2a9d8f;
    --dark-red: #d56a50;
    --navy: #264653;
    --purple: #6c5ce7;
    --blue: #3498db;
    --orange: #f39c12;
}

body {
    background: linear-gradient(135deg, #f9f5f0 0%, #f0e6ff 100%);
    color: #444;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: bold;
    color: var(--navy);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--soft-red), var(--soft-green));
    border-radius: 2px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--navy);
    margin: 20px 0 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
    border-bottom: 2px solid var(--soft-green);
    flex-wrap: wrap;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab.active {
    color: var(--soft-red);
    border-bottom: 3px solid var(--soft-red);
}

.tab:hover {
    color: var(--soft-red);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.app-icon {
    height: 180px;
    background: linear-gradient(135deg, var(--soft-green), var(--dark-green));
    background-size: cover;       /* image covers full div (crops if needed) */
    background-position: center;  /* centers image */
    background-repeat: no-repeat; /* prevents tiling */

    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.app-icon::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg) translateY(-50px);
    animation: shine 5s infinite linear;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateY(-50px) translateX(-100px); }
    100% { transform: rotate(45deg) translateY(-50px) translateX(100px); }
}

.app-content {
    padding: 25px;
}

.app-title {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.app-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.app-rating {
    color: var(--soft-gold);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    color: var(--navy);
    opacity: 0.8;
}

/* Snowflakes animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    font-size: 16px;
    animation: fall linear infinite;
    opacity: 0.7;
}

@keyframes fall {
    to {
        transform: translateY(105vh) rotate(360deg);
    }
}

/* Detail Page */
.detail-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.detail-header {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-button {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.back-button:hover {
    transform: translateX(-5px);
}

.detail-content {
    padding: 40px;
}

.app-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.detail-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.8rem;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-title {
    font-size: 2rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 5px;
}

.detail-rating {
    color: var(--soft-gold);
    font-size: 1.1rem;
}

.screenshot-section {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 40px;
}

/* Updated to smaller screenshot size */
.screenshots-container {
    width: 22%;
    min-width: 250px;
    height: 0;
    padding-bottom: 32.5%; /* 5:8 Aspect Ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.screenshot {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-style: italic;
}

.screenshot.active {
    opacity: 1;
}

.description-container {
    width: 60%;
    padding: 20px 0;
}

.app-description-long {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
    font-size: 1.05rem;
}

.download-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--purple);
    color: white;
    text-align: center;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    margin: 10px 0 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.download-button:hover {
    background: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

.reviews-section {
    margin-top: 40px;
}

.reviews-title {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.reviews-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--soft-red), var(--soft-green));
    border-radius: 2px;
}

.review {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.review:hover {
    transform: translateY(-5px);
}

.reviewer {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-stars {
    color: var(--soft-gold);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.review-text {
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

.overall-rating {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f4e9 0%, #e6f0ff 100%);
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.rating-value {
    font-size: 1.8rem;
    color: var(--navy);
    font-weight: bold;
    margin-bottom: 10px;
}

.rating-stars {
    color: var(--soft-gold);
    font-size: 1.8rem;
    margin: 10px 0;
    letter-spacing: 4px;
}

.rating-count {
    color: #666;
    font-size: 1.1rem;
}

/* Snowball animation for detail page */
.snowballs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.snowball {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: float linear infinite;
    opacity: 0.6;
}

@keyframes float {
    to {
        transform: translateY(105vh) rotate(360deg);
    }
}

/* Loading spinner for reviews */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--purple);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Games Section */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.game-image {
    height: 180px;
    background: linear-gradient(135deg, var(--soft-red), var(--dark-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.game-content {
    padding: 20px;
}

.game-title {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.game-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.play-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--soft-green);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.game-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: var(--soft-red);
}

/* Memory Game */
.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.memory-card {
    height: 80px;
    background: var(--soft-green);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.8rem;
    color: transparent;
    transition: all 0.3s ease;
}

.memory-card.flipped {
    background: white;
    color: var(--soft-red);
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: var(--soft-gold);
    color: white;
    cursor: default;
}

/* About Us Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-title {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 20px;
    text-align: center;
}

.about-text {
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--soft-green), var(--dark-green));
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
}

.member-name {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}

.member-role {
    color: #666;
    font-size: 0.9rem;
}

/* Countdown Section */
.countdown-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.countdown-title {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 30px;
    font-weight: 700;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.countdown-unit {
    background: linear-gradient(135deg, var(--soft-red), var(--dark-red));
    color: white;
    padding: 20px;
    border-radius: 12px;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-message {
    font-size: 1.3rem;
    color: var(--navy);
    margin: 20px 0;
    padding: 15px;
    background: var(--cream);
    border-radius: 10px;
    font-weight: 500;
}

.christmas-facts {
    margin-top: 40px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
}

.christmas-facts h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.christmas-facts p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .screenshot-section {
        flex-direction: column;
    }
    
    .screenshots-container, .description-container {
        width: 100%;
    }
    
    .screenshots-container {
        padding-bottom: 62.5%;
    }
}

@media (max-width: 900px) {
    .screenshots-container {
        padding-bottom: 62.5%;
    }
}

@media (max-width: 768px) {
    .apps-grid, .games-container {
        grid-template-columns: 1fr;
    }
    
    .app-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .detail-content {
        padding: 25px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .screenshot-section {
        gap: 20px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .memory-game {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .countdown-unit {
        min-width: 100px;
        padding: 15px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-unit {
        min-width: 70px;
        padding: 10px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

/* Animation for reviews */
.review {
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



/* new page */


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --warm-red: #d35400;
            --warm-green: #27ae60;
            --gold: #f39c12;
            --cream: #fff5e1;
            --light-gray: #f5f5f5;
            --dark-blue: #2c3e50;
            --dark-red: #c0392b;
            --dark-green: #16a085;
        }

        body {
            background: linear-gradient(135deg, #fff5f0 0%, #f0f8ff 100%);
            color: #444;
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            padding: 40px 0 20px;
            position: relative;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 3rem;
            font-weight: bold;
            color: var(--dark-blue);
            margin-bottom: 10px;
            position: relative;
            display: inline-block;
        }

        .logo::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, var(--warm-red), var(--warm-green));
            border-radius: 2px;
        }

        .tagline {
            font-size: 1.2rem;
            color: var(--dark-blue);
            margin: 20px 0 30px;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .back-button {
            display: inline-block;
            padding: 10px 20px;
            background: var(--warm-green);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 500;
            margin-bottom: 30px;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
        }

        .back-button:hover {
            background: var(--dark-green);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
        }

        .detail-content {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            margin-top: 30px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.7);
        }

        .app-detail-header {
            display: flex;
            align-items: center;
            margin-bottom: 40px;
        }

        .detail-icon {
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--warm-red), var(--warm-green));
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            margin-right: 30px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .detail-title {
            font-size: 2.2rem;
            color: var(--dark-blue);
            font-weight: 700;
            margin-bottom: 8px;
        }

        .detail-rating {
            color: var(--gold);
            font-size: 1.2rem;
        }

        .screenshot-section {
            display: flex;
            flex-direction: row;
            gap: 40px;
            margin-bottom: 40px;
        }

        .screenshots-container {
            width: 35%;
            min-width: 300px;
            height: 0;
            padding-bottom: 50%;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            position: relative;
            flex-shrink: 0;
        }

        .screenshot {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
            display: flex;
            justify-content: center;
            align-items: center;
            color: #999;
            font-style: italic;
            font-size: 1.2rem;
        }

        .screenshot.active {
            opacity: 1;
        }

        .description-container {
            width: 60%;
            padding: 20px 0;
        }

        .app-description-long {
            line-height: 1.8;
            margin-bottom: 30px;
            color: #555;
            font-size: 1.1rem;
        }

        .download-button {
            display: inline-block;
            padding: 14px 35px;
            background: var(--warm-red);
            color: white;
            text-align: center;
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: 500;
            text-decoration: none;
            margin: 10px 0 30px;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
        }

        .download-button:hover {
            background: var(--dark-red);
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
        }

        .reviews-section {
            margin-top: 40px;
        }

        .reviews-title {
            font-size: 1.8rem;
            color: var(--dark-blue);
            margin-bottom: 25px;
            font-weight: 700;
            position: relative;
            display: inline-block;
        }

        .reviews-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(to right, var(--warm-red), var(--warm-green));
            border-radius: 2px;
        }

        .review {
            background: rgba(255, 255, 255, 0.8);
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.6);
            transition: transform 0.3s ease;
        }

        .review:hover {
            transform: translateY(-5px);
        }

        .reviewer {
            font-weight: 600;
            color: var(--dark-blue);
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .review-stars {
            color: var(--gold);
            margin-bottom: 12px;
            font-size: 1.1rem;
        }

        .review-text {
            color: #555;
            font-style: italic;
            line-height: 1.6;
        }

        .overall-rating {
            text-align: center;
            padding: 30px;
            background: linear-gradient(135deg, #fff5f0 0%, #e6f0ff 100%);
            border-radius: 16px;
            margin-top: 40px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.7);
        }

        .rating-value {
            font-size: 1.5rem;
            color: var(--dark-blue);
            font-weight: bold;
            margin-bottom: 10px;
        }

        .rating-stars {
            color: var(--gold);
            font-size: 2rem;
            margin: 10px 0;
            letter-spacing: 4px;
        }

        .rating-count {
            color: #666;
            font-size: 1.1rem;
        }

        /* Loading spinner for reviews */
        .loader {
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--warm-red);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Snowflakes animation */
        .snowflakes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .snowflake {
            position: absolute;
            top: -20px;
            font-size: 16px;
            animation: fall linear infinite;
            opacity: 0.7;
        }

        @keyframes fall {
            to {
                transform: translateY(105vh) rotate(360deg);
            }
        }

        /* Responsive Design */
        @media (max-width: 1100px) {
            .screenshot-section {
                flex-direction: column;
            }
            
            .screenshots-container, .description-container {
                width: 100%;
            }
            
            .screenshots-container {
                padding-bottom: 70%;
                height: 75vh;
            }
        }

        @media (max-width: 768px) {
            .app-detail-header {
                flex-direction: column;
                text-align: center;
            }
            
            .detail-icon {
                margin-right: 0;
                margin-bottom: 20px;
            }
            
            .detail-content {
                padding: 25px;
            }
            
            .logo {
                font-size: 2.5rem;
            }
            
            .screenshot-section {
                gap: 20px;
            }
        }


        /* Devise */

.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #f0f4ff, #dfe9f3);
}

.auth-box {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.field {
  margin-bottom: 1rem;
}

.input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  width: 100%;
  background: #4f46e5;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #3730a3;
}

.links {
  margin-top: 1rem;
  text-align: center;
}

.links a {
  color: #4f46e5;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.danger-link {
  color: #dc2626;
}
.danger-link:hover {
  text-decoration: underline;
}


/* Review */

.reviews-section {
  margin-top: 30px;
}

.reviews-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.reviews-scroll {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;  /* smooth snapping */
}

.review-card {
  flex: 0 0 250px;        /* fixed card width */
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  scroll-snap-align: start;
}

.review-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.review-card .rating {
  font-size: 13px;
  color: #f39c12;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 13px;
  color: #444;
}


/* Review Index */

.review-actions {
  margin-bottom: 15px;
}

.reviews-list {
  margin-top: 20px;


    .review-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
    }

    .review-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    }

    .review-rating {
    font-weight: normal;
    color: #666;
    margin-left: 5px;
    }

    .review-text {
    margin: 10px 0;
    color: #333;
    }

    .review-links {
    margin-top: 10px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-small,
    .btn-danger {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    }

    .btn-primary { background: #28a745; color: white; }
    .btn-secondary { background: #6c757d; color: white; }
    .btn-small { background: #007bff; color: white; }
    .btn-danger { background: #dc3545; color: white; }

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-small:hover,
    .btn-danger:hover {
    opacity: 0.85;
    }
}


/* App index */
.apps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  .app-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
  }
  .app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }
  .app-actions .btn {
    flex: 1 1 48%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 0;
  }
  @media (max-width: 600px) {
    .apps-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .app-card {
      padding: 10px;
    }
    .app-actions .btn {
      flex: 1 1 48%;
      min-width: 0;
      box-sizing: border-box;
      margin-bottom: 0;
    }
  }
}

/* Target the custom tag <trix-editor> */
trix-editor {
  min-height: 150px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  margin-top: 5px;
  line-height: 1.5;
}

/* Style toolbar */
trix-toolbar {
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #f9f9f9;
  padding: 4px;
}

/* Optional: match inputs better */
trix-editor:focus {
  border-color: #66afe9;
  outline: none;
  box-shadow: 0 0 4px rgba(102,175,233,0.6);
}

.logo{
    h1 {
        text-align: center;
        /* margin-top: 50px; */
        /* color: var(--navy); */
        font-size: 3rem;
    }
}