/* webs-tracker.css */

#webs-tracker-app {
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9fafb; /* Light gray background */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #374151; /* Dark gray text */
}

.webs-tracker-overall-status {
    background-color: #e0f2fe; /* Light blue */
    padding: 3px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bfdbfe;
	display: flex;
}
.webs-tracker-overall-status p {
    margin: 5px 0;
    font-size: 16px;
    color: #1e40af;
    display: flex
;
    flex-direction: column;
    width: 100%;
    align-items: center;
    direction: ltr;
}

.webs-tracker-overall-status strong {
    color: #1c3d8a;
}

.webs-tracker-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.webs-tracker-step {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 5px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
}

.webs-tracker-step.pending {
    border-right: 5px solid #fcd34d; /* Yellow for pending */
}

.webs-tracker-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 65%;
}

.webs-tracker-step.completed {
    border-right: 5px solid #34d399; /* Green for completed */
    background-color: #f0fdf4; /* Very light green */
}

.webs-tracker-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.webs-tracker-step-number {
    font-weight: 400;
    font-size: 16px;
    color: #4b5563;
    margin-right: 10px;
    min-width: 25px; /* Ensure space for double-digit numbers */
    text-align: right;
}

.webs-tracker-step-name {
    font-weight: 400;
    font-size: 16px;
    color: #1f2937;
    flex-grow: 1;
    margin-right: 10px;
}

.webs-tracker-step-buttons {
    display: flex;
    gap: 8px;
}

.webs-tracker-start-button,
.webs-tracker-start-again-button {
    background-color: #3b82f6; /* Blue */
    color: white;
    border: none;
    padding: 3px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.webs-tracker-start-button:hover:not(:disabled),
.webs-tracker-start-again-button:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.webs-tracker-start-button:disabled,
.webs-tracker-start-again-button:disabled {
    background-color: #9ca3af; /* Gray for disabled */
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Specific style for "Start Again" button */
.webs-tracker-start-again-button {
    background-color: #e5e5e5; /* Orange */
}

.webs-tracker-start-again-button:hover:not(:disabled) {
    background-color: #ea580c;
}


.webs-tracker-step-details p {
    margin: 3px 0;
    font-size: 0.95em;
    color: #4b5563;
}

.webs-tracker-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.webs-tracker-controls button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#webs-tracker-finish-button {
    background-color: #10b981; /* Green */
    color: white;
}

#webs-tracker-finish-button:hover:not(:disabled) {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#webs-tracker-finish-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

#webs-tracker-reset-button {
    background-color: #ef4444; /* Red */
    color: white;
}

#webs-tracker-reset-button:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.webs-tracker-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.webs-tracker-message.success {
    background-color: #d1fae5; /* Light green */
    color: #065f46; /* Dark green */
    border: 1px solid #a7f3d0;
}

.webs-tracker-message.error {
    background-color: #fee2e2; /* Light red */
    color: #991b1b; /* Dark red */
    border: 1px solid #fca5a5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #webs-tracker-app {
        padding: 15px;
        margin: 10px;
    }

    .webs-tracker-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .webs-tracker-step-number {
        margin-bottom: 5px;
        text-align: left;
    }

    .webs-tracker-step-name {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .webs-tracker-step-buttons {
        width: 100%;
        justify-content: flex-end; /* Align buttons to the right */
    }

    .webs-tracker-step-buttons button {
        flex-grow: 1; /* Make buttons fill available space */
    }

    .webs-tracker-controls {
        flex-direction: column;
        gap: 10px;
    }

    .webs-tracker-controls button {
        width: 100%;
    }
}