/* Reuse global styles from style.css (section, container, etc.) */

.dashboard-container {
    padding-top: 20px;
}

.create-form {
    padding: 20px;
    background: #e8f7f8; /* Light background for the creation box */
    border-left: 5px solid #3498db;
    border-radius: 8px;
    margin-bottom: 30px;
}

.create-form h3 {
    color: #3498db; /* Blue accent */
    border-bottom: 1px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#itinerary-input {
    width: calc(100% - 120px); /* Make room for the button */
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    margin-right: 10px;
}

.itinerary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.itinerary-card-content {
    flex-grow: 1;
    font-size: 1.1em;
    font-weight: 500;
}

.itinerary-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.edit-btn {
    color: #3498db;
}
.edit-btn:hover {
    background: #eaf6ff;
}

.delete-btn {
    color: var(--error-color);
}
.delete-btn:hover {
    background: #fdeaea;
}

/* Edit Mode Styling */
.edit-mode .itinerary-card-content {
    display: none; /* Hide static text when editing */
}

.edit-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 1em;
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .itinerary-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .itinerary-card-content {
        margin-bottom: 10px;
    }
    .itinerary-actions {
        width: 100%;
        justify-content: flex-end;
    }
    #itinerary-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .create-form {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Search/Filter */
.search-filter-container {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 50px; /* Pill shape */
    border: 1px solid #ccc;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) inset;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}


/* Modal Styles (Detail View) */
.modal {
    position: fixed;
    z-index: 20; /* Above header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
}

#detail-itinerary-title {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #555;
    margin-bottom: 20px;
}

/* Activity Management */
.activity-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#activity-input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.activities-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f7f7f7;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    margin-bottom: 8px;
}

.activity-item button {
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1em;
}

/* Attraction Prompts */
.attraction-prompts {
    padding: 15px;
    background: #ecf0f1;
    border-radius: 8px;
    margin-bottom: 20px;
}

.attraction-prompts h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

#quick-add-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-add-btn {
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.quick-add-btn:hover {
    background: #2980b9;
}

.itinerary-card-content {
    flex-grow: 1;
    font-size: 1.1em;
    font-weight: 500;
}

.view-details-btn {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    transition: background 0.2s;
}
.view-details-btn:hover {
    background: #2980b9;
}

@media (max-width: 600px) {
    .activity-input-container {
        flex-direction: column;
    }
    .quick-add-btn {
        width: 100%;
    }
}