/* গ্লোবাল স্টাইল ও বডি সেন্টারিং (পিসিতে রিয়েল মোবাইল অ্যাপ লুক দেবে) */
body {
    background-color: #05080f;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: #ffffff;
}

/* মেইন মোবাইল অ্যাপ ফ্রেম (৪৮০ পিক্সেল লকড) */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: #0a0f1d;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
    border-left: 1px solid #141f36;
    border-right: 1px solid #141f36;
    box-sizing: border-box;
    padding-bottom: 80px; /* বটম বারের জন্য নিচের স্পেস */
}

/* টপ হেডার বার */
.app-header {
    background-color: #0e1629;
    border-bottom: 2px solid #00e5ff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-logo {
    color: #00e5ff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.app-wallet {
    background-color: #141f36;
    border: 1px solid #00e5ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
}

.app-wallet-login {
    background-color: #141f36;
    border: 1px solid #141f36;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #888888;
    text-decoration: none;
    transition: all 0.2s;
}

.app-wallet-login:hover {
    border-color: #00e5ff;
    color: #ffffff;
}

/* অতি স্মুথ ফেডেড ডিসল্ভ অ্যানিমেশন (পিউর ফেড ইফেক্ট) */
@keyframes pageTransition {
    0% {
        opacity: 0;
        transform: translateY(3px); /* চোখের পলকে অতি সামান্য ভেসে উঠা */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* কন্টেন্ট উইন্ডো এবং স্মুথ ফেডেড ট্রানজিশন অ্যাপ্লাই */
.app-content {
    flex: 1;
    padding: 15px;
    box-sizing: border-box;
    animation: pageTransition 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

/* নোটিশ বার */
.app-notice {
    background-color: #0e1629;
    border: 1px solid #00e5ff;
    margin: 12px 0px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.05);
}

.notice-badge {
    background-color: #00e5ff;
    color: #05080f;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.notice-text {
    color: #ffffff;
    font-size: 13px;
    margin: 0;
}

/* ক্যাটাগরি গ্রিড লেআউট */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 5px 0px;
}

/* ক্যাটাগরি কার্ড */
.app-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 130px;
    border: 1px solid #141f36;
    text-decoration: none !important;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.app-card:hover {
    transform: scale(1.02);
    border-color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(5, 8, 15, 0.95));
    padding: 12px;
    box-sizing: border-box;
}

.card-overlay h3 {
    color: #ffffff !important;
    font-size: 15px;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.card-overlay p {
    color: #00e5ff !important;
    font-size: 11px;
    margin: 0;
    font-weight: 600;
}

/* বটম নেভিগেশন বার */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #0e1629;
    border-top: 1px solid #141f36;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
    box-sizing: border-box;
}

.nav-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888888 !important;
    font-size: 11px;
    transition: color 0.2s;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-label {
    font-weight: 600;
}

.nav-item.active {
    color: #00e5ff !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* সাধারণ ফর্ম স্টাইল (লগইন ও রেজিস্ট্রেশন পেজ) */
.container {
    padding: 15px 0px;
}

.form-wrapper {
    background-color: #0e1629;
    border: 1px solid #141f36;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #aaaaaa;
    font-size: 13px;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background-color: #05080f;
    border: 1px solid #141f36;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* সাবমিট ও অ্যাকশন বাটন */
.join-btn, .btn-primary {
    width: 100%;
    background-color: #00e5ff;
    color: #05080f;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.join-btn:hover, .btn-primary:hover {
    background-color: #00b8cc;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.auth-redirect {
    text-align: center;
    color: #888888;
    font-size: 13px;
    margin-top: 15px;
}

.auth-redirect a {
    color: #00e5ff;
    text-decoration: none;
}

.auth-redirect a:hover {
    text-decoration: underline;
}

/* অ্যালার্ট মেসেজ স্টাইল */
.alert {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.alert-danger {
    background-color: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    color: #ff4757;
}

.alert-success {
    background-color: rgba(46, 213, 115, 0.1);
    border: 1px solid #2ed573;
    color: #2ed573;
}
