/* Page header */
.page-header {
    width: 100%;
    text-align: center;
}

.page-header h1 {
    color: #342f8f; /* Same purple */
    font-size: 2.5rem; /* bigger font */
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #342f8f;
    font-weight: bold;
}

/* Paragraph above cards */
#intro-paragraph {
    color: #342f8f;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    left: -765px; 
}

/* Cards */
.card {
    background-color: #d6d0f5; 
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 600px; 
    max-width: 100%;
    text-align: center;
    padding-top: 10px; 
}

/* Card headers */
.card h2 {
    color: #342f8f; 
    margin-bottom: 10px;
}

/* Form row inside cards */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    align-items: center; 
}

/* Inputs */
input[type="text"],
input[type="number"] {
    padding: 0 10px;    
    height: 40px;       
    margin: 0;          
    border-radius: 6px;
    border: 1px solid #ccc;
    flex: 1;
    min-width: 120px;
}

/* Buttons */
.btn-primary {
    background-color: #342f8f;
    color: white;
    border: none;
    
    height: 40px;       
    margin-top: 0;      
    padding: 0 15px;    
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 70px;
}

.btn-primary:hover {
    background-color: #5249c8;
}

/* Goal cards in the list */
.goal-card {
    background-color: #f0edfc; 
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 18px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0 10px 0;
}

.progress-bar div {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 0.5s, background-color 0.5s;
}

/* --- NEW: Wrapper for Input/Add/Delete buttons --- */
/* This forces them to sit side-by-side */
.goal-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Provides the separation you asked for */
    width: 100%;
    margin-top: 5px;
}

.goal-card .add-input {
    width: 120px; /* Slight increase for better visibility */
    flex: none;   /* Prevents it from stretching too much */
}

.goal-card .add-btn,
.goal-card .del-btn {
    font-size: 0.9rem;
    min-width: 70px; 
}

/* Layout: left and right sections */
#main-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 50px; 
}

#left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#right-section {
    max-width: 400px;
    padding-top: 10px;
}

#right-section h2 {
    color: #342f8f;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#right-section p {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    color: #342f8f;
}