/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

/* Header */
.app-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    backdrop-filter: blur(4px);
}

.side-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.side-menu-content {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 280px;
    max-width: 80vw;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.side-menu-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-menu-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.side-menu-nav {
    padding: 1rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--bg-secondary);
}

.menu-item.active {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.menu-item svg {
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    padding: 1.25rem;
    padding-bottom: 2rem;
}

/* Order Info */
.order-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.order-name-edit {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-name-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1.125rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    transition: all 0.2s;
}

.order-name-input:hover {
    background: var(--bg-primary);
    border-color: var(--border);
}

.order-name-input:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--primary);
}

.order-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.list-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.25rem;
}

.list-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Form Elements */
.input-field,
.textarea-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.textarea-field {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Add Item Form */
.add-item-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.add-item-form .input-field {
    flex: 1;
}

.add-item-form .btn-primary {
    padding: 0.875rem 1.25rem;
}

/* Shopping List */
.shopping-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Category Sections */
.category-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    flex: 1;
    font-size: 1rem;
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.2s;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.list-item.completed {
    opacity: 0.6;
    background: var(--bg-secondary);
}

.list-item.editing {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.list-item-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    accent-color: var(--success);
}

.list-item-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.list-item-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-item-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.list-item-timestamps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timestamp {
    white-space: nowrap;
}

.timestamp-separator {
    color: var(--border);
}

.category-selector {
    font-size: 0.7rem;
    padding: 0.125rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.category-selector:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.category-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.list-item.completed .list-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.list-item-edit-input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.list-item-edit-input:focus {
    outline: none;
}

.list-item-actions {
    display: flex;
    gap: 0.25rem;
}

.list-item .btn-icon {
    color: var(--text-secondary);
    padding: 0.375rem;
}

.list-item .btn-icon:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.list-item .btn-icon.delete:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.list-item .btn-icon.save:hover {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state small {
    font-size: 0.875rem;
}

.empty-state.hidden,
#templatesEmptyState.hidden {
    display: none;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.5rem;
}

/* Template Form */
.template-form {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.template-form h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.template-form .input-field,
.template-form .textarea-field {
    margin-bottom: 0.875rem;
}

/* Templates List */
.templates-list {
    padding: 1.5rem;
}

.templates-list h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

#templatesList {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: all 0.2s;
}

.template-item:hover {
    border-color: var(--primary-light);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.template-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.template-actions {
    display: flex;
    gap: 0.25rem;
}

.template-items {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.template-items-list {
    list-style: none;
    padding-left: 1rem;
}

.template-items-list li {
    padding: 0.125rem 0;
}

.template-items-list li:before {
    content: "• ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.template-footer {
    display: flex;
    gap: 0.5rem;
}

.template-footer .btn-primary {
    flex: 1;
}

/* Archive Page */
.archive-header {
    margin-bottom: 1.5rem;
}

.archive-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.archive-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-item {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: all 0.2s;
}

.archive-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.archive-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.archive-item-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.archive-item-dates {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.archive-item-actions {
    display: flex;
    gap: 0.25rem;
}

.archive-item-stats {
    margin-bottom: 0.75rem;
}

.stat-badge {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.archive-item-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.archive-preview-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.archive-preview-more {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.archive-item-footer {
    display: flex;
    gap: 0.5rem;
}

.archive-item-footer .btn-primary {
    flex: 1;
}

/* Modern UI for Login Screen */
.auth-modal.login-mode {
    background: linear-gradient(135deg, #e0f7fa, #80deea);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    color: #006064;
}

.auth-modal.login-mode h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004d40;
}

.auth-modal.login-mode button {
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-modal.login-mode button:hover {
    background-color: #004d40;
}

/* Modern UI for Register Screen */
.auth-modal.register-mode {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    color: #880e4f;
}

.auth-modal.register-mode h2 {
    font-size: 24px;
    font-weight: bold;
    color: #ad1457;
}

.auth-modal.register-mode button {
    background-color: #c2185b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-modal.register-mode button:hover {
    background-color: #880e4f;
}

/* Responsive Design */
@media (max-width: 640px) {
    .app-header h1 {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 1rem;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .modal-content {
        margin: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 95vh;
    }

    .list-item-timestamps {
        flex-wrap: wrap;
        font-size: 0.7rem;
    }

    .timestamp-separator {
        display: none;
    }

    .category-header {
        padding: 0.625rem 0.875rem;
    }

    .category-icon {
        font-size: 1.25rem;
    }

    .category-name {
        font-size: 0.9rem;
    }

    .category-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .category-selector {
        font-size: 0.65rem;
        max-width: 120px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .app-container {
        min-height: -webkit-fill-available;
    }
}

/* Loading animation for PWA */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* User Info in Side Menu */
.user-info {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar svg {
    color: var(--primary);
}

.user-details {
    flex: 1;
    color: white;
}

.user-details strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.user-details small {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Modal Small Variant */
.modal-small {
    max-width: 400px;
}

/* Auth Form */
.auth-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .input-field {
    padding-right: 3rem;
    flex: 1;
}

.btn-password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-password-toggle:hover {
    color: var(--primary);
}

.btn-password-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.form-error {
    padding: 0.75rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-sm);
    color: #c33;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
}

.auth-toggle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
}

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

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 1rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-oauth:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-oauth:active {
    transform: translateY(0);
}

.btn-oauth svg {
    flex-shrink: 0;
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-github:hover {
    border-color: #333;
}

/* Guest Message */
.guest-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.guest-message-content {
    text-align: center;
    max-width: 400px;
}

.guest-message-content svg {
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.guest-message-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guest-message-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.guest-message-content .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Share Modal */
.share-content {
    padding: 1.5rem;
}

.share-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.share-info svg {
    margin-bottom: 1rem;
}

.share-info p {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.share-expires {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link-container .input-field {
    flex: 1;
    font-size: 0.875rem;
    background: var(--bg-secondary);
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-sms {
    background: #007AFF;
    color: white;
}

.btn-sms:hover {
    background: #0062CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
    pointer-events: all;
    min-width: 300px;
    max-width: 500px;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: #f59e0b;
}

.toast.info {
    background: var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Confirmation Dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.confirm-dialog-content {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.2s ease-out;
}

.confirm-dialog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.confirm-dialog-message {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Shared List Modal Styles */
.shared-list-content {
    padding: 20px;
}

.shared-list-info {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.shared-list-info p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.shared-list-info strong {
    color: var(--text-primary);
}

.shared-list-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.shared-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

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

.shared-list-item .category-icon {
    font-size: 1.5rem;
}

.shared-list-item .item-text {
    flex: 1;
    color: var(--text-primary);
}

.shared-list-actions {
    padding-top: 10px;
}
