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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.header-left {
    display: flex;
    align-items: center;
}
.app-icon {
    font-size: 28px;
}
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}
.workspace-selector{
    width: 100%;
    padding:0 15px;
}
.workspace-selector select {
    padding: 12px;
    font-size: 16px;
}
.offline-indicator {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.offline-indicator.online {
    background: #27ae60;
}
.workspace-selector select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

.auth-card h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.auth-card p {
    margin-bottom: 25px;
    color: #7f8c8d;
}

.google-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.google-btn:hover {
    background: #3367d6;
}

.google-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.setting-label {
    font-weight: 600;
    color: #2c3e50;
}

.setting-value {
    color: #7f8c8d;
    font-size: 14px;
}

.status-connected {
    color: #27ae60;
    font-weight: 600;
}

.status-disconnected {
    color: #e74c3c;
    font-weight: 600;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    width: auto;
}

.btn-danger {
    background: #e74c3c;
}

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

.sync-bar {
    background: #f39c12;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    display: none;
}

.sync-bar.visible {
    display: block;
}

.sync-bar:hover {
    background: #e67e22;
}

.sync-bar.syncing {
    background: #3498db;
    cursor: not-allowed;
}

.nav-tabs {
    display: flex;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.nav-tab.active {
    background: #3498db;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.expense-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.expense-amount {
    font-weight: bold;
    color: #e74c3c;
    font-size: 18px;
}

.expense-date {
    color: #7f8c8d;
    font-size: 14px;
}

.expense-details {
    color: #555;
    font-size: 14px;
}

.expense-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #f39c12;
}

.btn-delete {
    background: #e74c3c;
}

.expense-item.deleting {
    opacity: 0.6;
    background: #ffeaa7;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 0 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .workspace-selector select {
        font-size: 14px;
        padding: 8px;
    }

    .app-icon {
        font-size: 24px;
    }

    .offline-indicator {
        font-size: 10px;
        padding: 6px 8px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        flex: none !important;
    }

    .form-card {
        padding: 20px;
    }
}