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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #1a3c34;
    color: #2c3e2f;
}

/* Splash Screen */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a3c34;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.splash-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #f1c40f;
}

.splash-title {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
}

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #f1c40f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Main App Container */
#app {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    position: relative;
}

/* Views */
.view {
    display: none;
    padding: 20px;
}

.view.active {
    display: block;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

.logo i {
    font-size: 60px;
    color: #2e7d64;
}

.logo h1 {
    color: #2e7d64;
    font-size: 28px;
    margin: 10px 0;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #2e7d64;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1f5a47;
}

.btn-secondary {
    background: #95a5a6;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

/* Toggle Links */
.toggle-link {
    text-align: center;
    margin-top: 20px;
}

.toggle-link a {
    color: #2e7d64;
    text-decoration: none;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-badge {
    background: #2e7d64;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.logout-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #c0392b;
}

/* Stats Cards */
.stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    flex: 1;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card i {
    margin-right: 8px;
    color: #2e7d64;
}

/* Menu Cards */
.card-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.menu-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.menu-card i {
    font-size: 32px;
    color: #2e7d64;
    display: block;
    margin-bottom: 8px;
}

.menu-card span {
    font-size: 14px;
    font-weight: 500;
}

/* Accordion Menu (Slide-out) */
.accordion-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.accordion-menu.open {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2e7d64;
    color: white;
}

.menu-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-header i:first-child {
    margin-right: 10px;
    color: #2e7d64;
}

.accordion-content {
    display: none;
    padding: 0 20px 15px 45px;
}

.accordion-content a {
    display: block;
    padding: 8px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.accordion-content a:hover {
    color: #2e7d64;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Pages */
.page {
    display: none;
    padding: 20px;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #2c3e50;
}

/* Add Item Form */
.add-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.add-item h3 {
    margin-bottom: 15px;
    color: #2e7d64;
}

.add-item input, .add-item select, .add-item textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Items List */
.items-list {
    background: white;
    padding: 15px;
    border-radius: 12px;
}

.item-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #2e7d64;
}

.item-card.low-stock {
    border-left-color: #e67e22;
    background: #fff3e0;
}

.item-card.expired {
    border-left-color: #c0392b;
    background: #ffeaea;
}

.item-card h4 {
    margin-bottom: 6px;
}

.item-card p {
    font-size: 13px;
    color: #555;
    margin: 4px 0;
}

.item-actions {
    margin-top: 10px;
}

.item-actions button {
    background: #ecf0f1;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 8px;
    cursor: pointer;
}

/* Coming Soon */
.coming-soon-large {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.coming-soon-large i {
    font-size: 60px;
    color: #f1c40f;
    margin-bottom: 20px;
}

/* Upgrade Prompt */
.upgrade-prompt {
    text-align: center;
    padding: 20px;
    background: #fdffb9;
    border-radius: 12px;
    margin: 20px 0;
}