:root {
    --primary-color: #4e9df5;
    --primary-dark: #3b82f6;
    --text-color: #333;
    --text-secondary: #999;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --nav-height: 60px;
    --header-height: 50px;
}

* {
    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: var(--bg-color);
    color: var(--text-color);
    overflow: hidden; /* Prevent body scroll, handle inside views */
    height: 100vh;
    width: 100vw;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.views-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    background-color: var(--bg-color);
    overflow-y: auto;
}

.view.active {
    display: flex;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Drawer Overlay Shared Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Permission Modal Styles (Override/Specifics) */
#permission-overlay {
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.permission-modal {
    background-color: var(--white);
    width: 80%;
    max-width: 320px;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perm-modal-icon {
    font-size: 48px;
    color: #ff9800;
    margin-bottom: 15px;
}

.perm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.perm-modal-content {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 25px;
}

.perm-modal-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.perm-modal-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    margin: 0 5px;
    text-align: center;
}

.perm-modal-btn.cancel {
    background-color: #f0f2f5;
    color: #999;
}

.perm-modal-btn.confirm {
    background-color: var(--primary-color);
    color: #fff;
}

/* Permission Settings View */
#view-permission-settings {
    background-color: #f5f5f5;
}

.perm-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
}

.perm-header i {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.perm-header span {
    font-size: 18px;
    font-weight: 500;
}

.perm-content {
    padding: 15px;
}

.perm-section {
    background-color: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.perm-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.perm-row:last-child {
    border-bottom: none;
}

.perm-label {
    flex: 1;
    font-size: 16px;
    color: var(--text-color);
}

.perm-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.perm-app-info {
    display: flex;
    align-items: center;
    padding: 20px 15px;
}

.perm-app-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-right: 15px;
}

.perm-app-details {
    flex: 1;
}

.perm-app-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.perm-app-ver {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.modal-dialog {
    background-color: var(--white);
    width: 80%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.modal-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    color: var(--primary-color);
}

.modal-btn.cancel {
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
}

/* Drawer */
#app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: var(--white);
    z-index: 1500;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

#app-drawer.open {
    transform: translateX(0);
}

#drawer-overlay {
    z-index: 1400;
}

.drawer-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-color);
    color: var(--white);
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.drawer-header i {
    cursor: pointer;
    font-size: 20px;
}

.drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.drawer-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 4px solid transparent;
}

.drawer-item:hover {
    background-color: #f5f5f5;
}

.drawer-item.active {
    background-color: #e6f2ff;
    border-left-color: var(--primary-color);
}

.drawer-item .item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: var(--white);
    flex-shrink: 0;
}

.drawer-item .item-name {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
}

.drawer-item .item-check {
    color: var(--primary-color);
    opacity: 0;
}

.drawer-item.active .item-check {
    opacity: 1;
}

.drawer-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f9f9f9;
}

.drawer-footer:hover {
    background-color: #f0f0f0;
}

.drawer-footer i {
    margin-right: 8px;
    font-size: 18px;
}

/* Header */
.app-header {
    height: var(--header-height);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.header-left, .header-right {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left i, .header-right i {
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
}

.header-center {
    font-size: 17px;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

/* Search Bar */
.search-container {
    height: 44px;
    background-color: #efeff4;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dcdcdc;
    z-index: 100;
}

.search-input-box {
    flex: 1;
    background-color: #fff;
    border-radius: 4px;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.search-input-box i.fa-search {
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.search-input-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-input-box i.fa-times-circle {
    color: #ccc;
    font-size: 14px;
    margin-left: 5px;
    cursor: pointer;
}

.search-cancel {
    color: var(--primary-color);
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 500;
}

/* Status Bar */
.status-bar {
    height: 36px;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid #f0f0f0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #07c160;
    margin-right: 8px;
    display: inline-block;
}

/* Permission Check Entry */
.permission-check-entry {
    background-color: #e6f2ff;
    margin: 10px 15px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid #b3d7ff;
}

.perm-check-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-right: 12px;
}

.perm-check-text {
    flex: 1;
}

.perm-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.perm-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.perm-arrow {
    color: var(--primary-color);
    font-size: 14px;
}

/* Permission Check Full Page */
.perm-status-card {
    background-color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 10px;
}

.perm-score-circle {
    width: 120px;
    height: 120px;
    border: 6px solid #ff9800;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ff9800;
}

.score-num {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
}

.score-text {
    font-size: 12px;
    margin-top: 5px;
}

.perm-status-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.perm-list-group {
    background-color: #fff;
    margin-bottom: 10px;
}

.perm-group-title {
    padding: 15px 20px 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Reuse perm-item styles from previous implementation */

.perm-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.perm-item:last-child {
    border-bottom: none;
}

.perm-item-icon {
    width: 30px;
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 10px;
    text-align: center;
}

.perm-item-info {
    flex: 1;
}

.perm-item-name {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.perm-item-status {
    font-size: 12px;
    color: #07c160;
}

.perm-item.warning .perm-item-status {
    color: #ff9800;
}

.perm-item-action {
    font-size: 18px;
    color: #07c160;
}

.btn-fix {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.perm-list-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
}

/* Content */
.content-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-bottom: var(--nav-height); /* Space for bottom nav */
}

.message-item {
    background-color: var(--white);
    padding: 15px;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.message-item:last-child {
    border-bottom: none;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.msg-content {
    flex: 1;
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.msg-name {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.msg-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.msg-text {
    font-size: 14px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Voice Share View - Removed */

/* Me View */
.me-header {
    background: linear-gradient(135deg, #4e9df5, #3b82f6);
    color: var(--white);
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: none;
    padding: 0;
}

.me-header .header-center {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.me-header .header-sub {
    font-size: 12px;
    opacity: 0.8;
}

.rocket-img {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    opacity: 0.8;
}

.me-content {
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
    background-color: var(--white);
    padding: 20px 0;
    position: relative;
    z-index: 5;
}

.list-group {
    padding: 0 20px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.list-item:last-child {
    border-bottom: none;
}

.item-icon {
    width: 30px;
    text-align: center;
    margin-right: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.item-text {
    flex: 1;
    font-size: 16px;
    color: var(--text-color);
}

.item-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Add App View Styles */
.app-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.app-item:last-child {
    border-bottom: none;
}

.app-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-right: 15px;
}

.app-item-info {
    flex: 1;
}

.app-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.app-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Splash Screen */
#view-splash {
    display: none; /* Initially handled by JS class toggle */
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

#view-splash.active {
    display: flex;
}

.splash-top {
    flex: 1;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px; /* Space for curve overlap */
    position: relative;
    color: #fff;
}

.splash-logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.splash-logo i {
    font-size: 40px;
    color: #4facfe;
}

.splash-shield {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.splash-shield i {
    font-size: 16px;
    color: #4facfe;
}

.splash-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.splash-slogan {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.splash-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: left;
}

.splash-features li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.splash-features .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #fff;
    margin-right: 10px;
}

.splash-btn-container {
    width: 80%;
    max-width: 280px;
}

.splash-btn {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #4facfe;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.splash-bottom {
    background: #fff;
    position: relative;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-bottom-curve {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5); /* Widen the curve */
}

.splash-bottom-content {
    padding-top: 40px;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.splash-sub-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.splash-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
}

.splash-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: 0 auto;
}

.splash-divider .line {
    flex: 1;
    height: 1px;
    background: #eee;
}

.splash-divider .text {
    padding: 0 10px;
    font-size: 12px;
    color: #bbb;
}

/* Switch Checkbox */
.switch-checkbox {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.switch-checkbox .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.switch-checkbox input:checked + .slider {
    background-color: var(--primary-color);
}

.switch-checkbox input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

.switch-checkbox input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Chat Detail View */
.chat-container {
    background-color: #f5f5f5;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.chat-date-separator {
    text-align: center;
    margin: 10px 0 20px;
}

.chat-date-separator span {
    background-color: rgba(0,0,0,0.1);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.chat-bubble-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.chat-bubble-row.sent {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-bubble-row.received .chat-avatar {
    margin-right: 10px;
}

.chat-bubble-row.sent .chat-avatar {
    margin-left: 10px;
    background-color: #a0e75a; /* Typical user avatar color or keep same */
}

.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble-row.received .chat-bubble {
    background-color: #fff;
    color: #333;
    border-top-left-radius: 0;
}

.chat-bubble-row.sent .chat-bubble {
    background-color: #95ec69; /* WeChat green */
    color: #000;
    border-top-right-radius: 0;
}

/* Recalled Message Styling */
.chat-bubble.recalled {
    border: 1px solid #ff4d4f;
    background-color: #fff1f0;
    position: relative;
    overflow: hidden;
}

.chat-bubble-row.sent .chat-bubble.recalled {
    background-color: #ffccc7; /* Darker red/pink for sent recalled */
}

.recalled-badge {
    display: block;
    font-size: 10px;
    color: #ff4d4f;
    margin-bottom: 4px;
    font-weight: bold;
}

.recall-stamp {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%) rotate(-15deg);
    border: 2px solid #ff4d4f;
    color: #ff4d4f;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    opacity: 0.6;
    pointer-events: none;
    letter-spacing: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Adjust bubble padding to make room if needed, though overlay is fine */
.chat-bubble.recalled {
    padding-right: 10px; /* Minimal adjustment */
}

.chat-time {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
    text-align: right;
    margin-top: 5px;
    line-height: 1;
}

.chat-footer {
    height: 50px;
    background-color: #f7f7f7;
    border-top: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.chat-input-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #7f8389;
    cursor: pointer;
}

.chat-input-box {
    flex: 1;
    height: 36px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #ccc;
    font-size: 14px;
    margin: 0 5px;
}

/* Bottom Nav */
.bottom-nav {
    height: var(--nav-height);
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 10px;
    flex: 1;
    height: 100%;
    cursor: pointer;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

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

/* Reminder View Styles */
.reminder-list {
    padding: 15px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
}

.reminder-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reminder-info {
    flex: 1;
}

.reminder-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.reminder-detail {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.reminder-detail i {
    margin-right: 5px;
    font-size: 10px;
}

.reminder-action {
    color: #ff4d4f;
    padding: 10px;
    cursor: pointer;
}

/* Add Reminder Form Styles */
.form-group-title {
    padding: 15px 20px 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-section {
    background-color: var(--white);
    padding: 0 20px;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.form-row:last-child {
    border-bottom: none;
}

.form-row label {
    flex: 1;
    font-size: 16px;
    color: var(--text-color);
}

.form-row input[type="text"],
.form-row input[type="time"] {
    text-align: right;
    border: none;
    font-size: 16px;
    color: var(--text-secondary);
    outline: none;
    background: transparent;
}

/* Ringtone Select Styling */
#row-ringtone-select {
    border-top: 1px solid #f0f0f0; /* Separator from switch */
    padding-left: 20px; /* Indent to show hierarchy */
    background-color: #fafafa; /* Slightly different background to indicate submenu */
}

#row-ringtone-select label {
    font-size: 14px;
    color: #666;
}

#reminder-ringtone-select {
    flex: 1; /* Take up remaining space */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: var(--white);
    padding: 8px 10px;
    font-size: 14px;
    color: var(--text-color);
    outline: none;
    margin-left: 10px;
    cursor: pointer;
    /* Custom Arrow (optional, or use default) */
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.reminder-type-tabs {
    display: flex;
    background-color: var(--white);
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.type-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
}

.type-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.type-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.type-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* User Profile Styles */
.user-profile-card {
    background-color: var(--white);
    padding: 20px 20px 40px 20px;
    display: flex;
    align-items: center;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
}

.user-avatar i {
    font-size: 40px;
    color: #07c160;
}

.user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-nickname {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.user-vip-status {
    display: flex;
    align-items: center;
}

.vip-badge {
    background-color: #e0e0e0;
    color: #666;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.vip-badge.active {
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: #fff;
}

/* VIP Entry Card (in Me page) */
.vip-entry-card {
    margin: -30px 20px 10px 20px;
    background: linear-gradient(135deg, #333, #1a1a1a);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffd700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.vip-entry-info {
    flex: 1;
}

.vip-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.vip-title i {
    margin-right: 6px;
}

.vip-desc {
    font-size: 12px;
    opacity: 0.8;
}

.vip-entry-btn {
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: #333;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 20px;
}

/* VIP Page Styles */
.vip-page-content {
    background-color: #f8f8f8;
}

.vip-header-banner {
    background-color: #333;
    padding: 20px 20px 40px 20px;
    color: #fff;
}

.vip-user-info {
    display: flex;
    align-items: center;
}

.vip-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #07c160;
    font-size: 30px;
}

.vip-text-info .vip-nickname {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.vip-text-info .vip-status-text {
    font-size: 12px;
    opacity: 0.7;
}

.vip-section-title {
    padding: 15px 20px 10px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.vip-plans-container {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
}

.vip-plan-card {
    width: 48%;
    background-color: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.vip-plan-card.active {
    border-color: #cca352;
    background-color: #fffdf5;
}

.vip-plan-card .plan-tag {
    position: absolute;
    top: -10px;
    right: -5px;
    background-color: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.plan-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.plan-price {
    font-size: 14px;
    color: #cca352;
    font-weight: bold;
    margin-bottom: 5px;
}

.plan-price .price-num {
    font-size: 28px;
}

.plan-desc {
    font-size: 11px;
    color: #999;
}

.vip-privileges-list {
    background-color: #fff;
    margin: 10px 15px;
    border-radius: 10px;
    padding: 5px 0;
}

.privilege-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
}

.privilege-item:last-child {
    border-bottom: none;
}

.priv-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff8e1;
    color: #cca352;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.priv-info .priv-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.priv-info .priv-desc {
    font-size: 12px;
    color: #999;
}

.vip-footer-spacer {
    height: 80px;
}

.vip-fixed-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    z-index: 100;
}

.vip-total-price {
    font-size: 14px;
    color: #333;
}

.vip-total-price .total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #ff4d4f;
}

.vip-pay-btn {
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: #333;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
}
