/* style.css */
:root {
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #A5D6A7;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #757575;
    --warning: #FFC107;
    --danger: #F44336;
    --success: #8BC34A;
    --background: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --blur: 10px;
}

:root.dark-theme {
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #2E7D32;
    --white: #121212;
    --text-dark: #E0E0E0;
    --text-light: #9E9E9E;
    --warning: #FFA000;
    --danger: #D32F2F;
    --success: #689F38;
    --background: #1E1E1E;
    --card-bg: rgba(30, 30, 30, 0.8);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="" width="100" height="100" viewBox="0 0 100 100"><rect fill="%234CAF50" width="50" height="50" x="0" y="0" opacity="0.05"></rect><rect fill="%234CAF50" width="50" height="50" x="50" y="50" opacity="0.05"></rect></svg>');
    background-size: 20px 20px;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* Glassmorphism effect */
.glassmorphism {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 1rem;
    text-align: center; 
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
    z-index: 10;
}

.app-header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

#theme-toggle {
    transition: all 0.3s;
}

.view {
    display: none;
    padding: 1rem;
    padding-bottom: 80px;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active-view {
    display: block;
}

/* Card Styles */
.stats-card, .upcoming-card, .settings-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-in-out;
}

.stats-card h2, .upcoming-card h2, .settings-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 12px;
    background-color: rgba(165, 214, 167, 0.2);
    transition: transform 0.2s;
}

.upcoming-item:hover {
    transform: translateY(-2px);
}

.upcoming-item .plant-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.upcoming-item .plant-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.upcoming-item .plant-stage {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Cycles List */
.cycles-header, .reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    flex-grow: 1;
    min-width: 200px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    background-color: var(--card-bg);
    color: var(--text-dark);
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.filter-controls {
    position: relative;
}

.filter-btn, .action-btn {
    background-color: var(--card-bg);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
    font-weight: 500;
}

.filter-btn:hover, .action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.filter-options {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    z-index: 100;
    display: none;
    width: 180px;
    margin-top: 0.5rem;
}

.filter-options label {
    display: block;
    margin-bottom: 0.75rem;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.filter-options input {
    margin-right: 0.75rem;
    accent-color: var(--primary-color);
}

.cycles-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cycle-card {
    padding: 1.25rem;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    transition: transform 0.2s;
}

.cycle-card:hover {
    transform: translateY(-3px);
}

.cycle-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: center;
}

.cycle-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cycle-name small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.cycle-days {
    font-size: 0.85rem;
    color: var(--text-light);
    background-color: rgba(165, 214, 167, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.cycle-timeline {
    margin: 1rem 0;
    height: 10px;
    background-color: rgba(165, 214, 167, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.cycle-stages {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.75rem;
    gap: 0.5rem;
}

.stage {
    text-align: center;
    flex: 1;
    position: relative;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-light);
    z-index: 1;
    opacity: 0.3;
}

.stage.active {
    font-weight: 600;
    color: var(--primary-color);
}

.stage.completed::before {
    background-color: var(--success);
}

.stage.delayed::before {
    background-color: var(--danger);
}

.stage.upcoming::before {
    background-color: var(--warning);
}

.harvest-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.harvest-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.report-card {
    padding: 1.25rem;
    animation: fadeIn 0.5s ease-in-out;
    transition: transform 0.2s;
}

.report-card:hover {
    transform: translateY(-3px);
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: center;
}

.report-plant {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.report-plant small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.report-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.report-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    align-items: center;
}

.report-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.report-quality {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.quality-excellent {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
}

.quality-good {
    background-color: rgba(85, 139, 47, 0.1);
    color: #558B2F;
}

.quality-average {
    background-color: rgba(245, 127, 23, 0.1);
    color: #F57F17;
}

.quality-poor {
    background-color: rgba(198, 40, 40, 0.1);
    color: #C62828;
}

.report-notes {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    padding: 0.75rem;
    background-color: rgba(165, 214, 167, 0.1);
    border-radius: 8px;
}

.empty-message {
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* Chart Styles */
.chart-container {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    height: 280px;
}

/* Settings Styles */
.input-with-button {
    display: flex;
    gap: 0.75rem;
}

.input-with-button input {
    flex-grow: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-with-button input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.small-btn {
    padding: 0 1rem;
    border-radius: 8px;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.small-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.tables-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.table-item {
    background-color: rgba(165, 214, 167, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.table-item:hover {
    background-color: rgba(165, 214, 167, 0.3);
}

.table-item button {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.table-item button:hover {
    color: var(--danger);
}

.pin-input-container {
    margin: 1.5rem 0;
}

.pin-input-container input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--text-light);
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    background-color: var(--card-bg);
    color: var(--text-dark);
    transition: all 0.3s;
}

.pin-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

#pin-settings {
    background: rgba(165, 214, 167, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px dashed rgba(76, 175, 80, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--card-bg);
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cancel-btn {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.cancel-btn:hover {
    background-color: rgba(165, 214, 167, 0.3);
    transform: translateY(-2px);
}

.confirm-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    max-width: 600px;
    margin: 0 auto;
    z-index: 100;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
    background-color: rgba(76, 175, 80, 0.2);
    transform: translateY(-5px);
}

.nav-item.active i {
    transform: scale(1.2);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.fab:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--primary-dark);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 1.75rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease-in-out;
    color: var(--text-dark);
}

#pin-modal .modal-content {
    text-align: center;
}

.modal-content.small {
    max-width: 400px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--danger);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Loading Indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: white;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 300px;
}

.toast {
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 3s forwards;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.9);
}

.toast.error {
    background-color: rgba(244, 67, 54, 0.9);
}

.toast.warning {
    background-color: rgba(255, 193, 7, 0.9);
    color: var(--text-dark);
}

.toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: 12px;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1.5rem;
        text-align: left;
        align-items: center;
    }
    
    .stat-icon {
        margin-bottom: 0;
    }
    
    .modal-content {
        margin: 25% auto;
        padding: 1.5rem;
    }
    
    .cycles-header, .reports-header {
        flex-direction: column;
    }
    
    .search-box {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .filter-options {
        right: auto;
        left: 0;
    }
    
    .report-actions {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .action-btn {
        width: 48%;
    }
    
    .bottom-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        padding: 0.5rem;
    }
    
    .fab {
        width: 56px;
        height: 56px;
        bottom: 80px;
    }
}
/* Finance Styles */
.finance-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.finance-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.finance-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.finance-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.finance-section.active-section {
    display: block;
}

.finance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.finance-summary {
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.summary-item span:first-child {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.summary-item span:last-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.finance-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.finance-item {
    padding: 1rem;
    animation: fadeIn 0.5s ease-in-out;
    transition: transform 0.2s;
}

.finance-item:hover {
    transform: translateY(-3px);
}

.finance-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.finance-item-title {
    font-weight: 600;
    color: var(--primary-color);
}

.finance-item-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.finance-item-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.finance-item-quantity {
    font-size: 0.9rem;
    color: var(--text-light);
}

.finance-item-price {
    font-weight: 600;
}

.finance-item-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.finance-item-actions button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.finance-item-actions button:hover {
    color: var(--primary-color);
}

.finance-item-actions button.delete:hover {
    color: var(--danger);
}

/* Responsive adjustments for finance */
@media (max-width: 480px) {
    .finance-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .summary-item {
        align-items: flex-start;
    }
}
.header-actions {
    display: none; /* atau visibility: hidden */
}

/* Sembunyikan bagian "Aktifkan PIN" dan semua input PIN */
.form-group:has(#enable-pin),
#pin-settings {
    display: none !important;
}