/* Header */
.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header title with client name */
.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header buttons container */
.header-buttons {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

/* Header button */
.header-button, .settings-button, .clients-button {
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    text-decoration: none;
}

.header-button:hover, .settings-button:hover, .clients-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Delete button */
.delete-button {
    color: #dc3545;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    margin-left: 0.5rem;
}

.delete-button:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #bd2130;
}

/* Clear button */
.clear-button {
    color: #dc3545;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    margin-left: 0.5rem;
}

.clear-button:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #bd2130;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Navigation */
.app-nav {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Tab navigation */
.tab-navigation {
    display: flex;
    background-color: #f1f5fb;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    padding: 0 1rem;
}

/* Tab container to center tabs */
.tab-buttons-container {
    display: flex;
    flex: 1;
    justify-content: center;
}

/* Back button */
.back-button {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: color 0.2s;
    margin-right: 0.5rem;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.back-button:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Month header */
.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.month-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

/* Month header left section with title and client name */
.month-header-left {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
}

.month-header-left .month-title {
    margin-right: 5px;
    white-space: nowrap; /* Prevent title from breaking into multiple lines */
}

/* Client name styling */
.client-name-inline {
    white-space: nowrap; /* Prevent client name from breaking into multiple lines */
    margin-left: 5px;
}

/* Logout button */
.logout-button {
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    text-decoration: none;
}

.logout-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-container {
        height: 100vh;
        max-width: 100%;
        margin: 0;
    }
    
    /* Fix header buttons overlap with title */
    .app-header h1 {
        font-size: 1.5rem;
        padding-right: 80px; /* Make room for the header buttons */
    }
    
    /* Adjust client info for mobile */
    .client-info {
        position: static;
        transform: none;
        margin: 0.5rem auto;
        width: fit-content;
        font-size: 0.8rem;
    }
    
    .header-buttons {
        right: 0.5rem;
    }
    
    .header-button, .settings-button, .clients-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Fix for mobile tab navigation */
    .tab-navigation {
        padding: 0 0.5rem;
    }
    
    .back-button, .delete-button, .clear-button {
        width: 40px;
        height: 40px;
        margin: 0 0.25rem;
    }
    
    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}
