* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

/* Common Utilities */
.container {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login Page */
.login-container {
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.app-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.2);
}

.app-name {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #718096;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #a0aec0;
}

/* Home Page */
.home-header {
    background: white;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e2e8f0;
    margin-right: 16px;
    overflow: hidden;
}

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

.user-info h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 14px;
    color: #718096;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 20px 16px;
    color: #4a5568;
}

.grid-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 20px;
}

.menu-item {
    background: white;
    padding: 20px 10px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-item:active {
    transform: scale(0.95);
}

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #ebf4ff;
    color: #4299e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.menu-text {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* Icon Colors */
.menu-item:nth-child(1) .menu-icon { background: #ebf8ff; color: #3182ce; }
.menu-item:nth-child(2) .menu-icon { background: #faf5ff; color: #805ad5; }
.menu-item:nth-child(3) .menu-icon { background: #f0fff4; color: #38a169; }
.menu-item:nth-child(4) .menu-icon { background: #fffaf0; color: #dd6b20; }
.menu-item:nth-child(5) .menu-icon { background: #fff5f5; color: #e53e3e; }
.menu-item:nth-child(6) .menu-icon { background: #edf2f7; color: #718096; }

/* FontAwesome shim for demo if not included */
.fa { font-style: normal; }
