/* assets/css/plan.css */

.collapsible-main-section {
	margin-bottom: 1.5em;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	background-color: var(--content-bg-color);
	overflow: hidden;
}

.collapsible-main-section>summary {
	display: block;
	cursor: pointer;
	outline: none;
	padding: var(--base-padding);
	background-color: #f8f9fa;
	position: relative;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.2s ease;
	list-style: none;
}

.collapsible-main-section>summary::-webkit-details-marker {
	display: none;
}

.collapsible-main-section>summary:hover {
	background-color: #e9ecef;
}

details[open].collapsible-main-section>summary {
	border-bottom-color: var(--border-color);
}

.collapsible-main-section>summary>h2 {
	display: inline-block;
	margin: 0;
	font-size: 1.4em;
	color: var(--primary-color);
	vertical-align: middle;
	max-width: calc(100% - 45px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.collapsible-main-section>summary>h2 i {
	color: inherit;
	margin-right: 8px;
}

.collapsible-main-section>summary::after {
	content: '+';
	position: absolute;
	right: var(--base-padding);
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.8em;
	font-weight: bold;
	color: var(--primary-color);
	line-height: 1;
}

details[open].collapsible-main-section>summary::after {
	content: '\2212';
}

.collapsible-main-section>.section-content {
	padding: var(--base-padding);
}

.collapsible-subsection {
	margin-bottom: 1em;
	background-color: transparent;
	border: 1px solid var(--border-light-color);
	border-radius: 6px;
	overflow: hidden;
}

.collapsible-subsection>.subsection-summary {
	cursor: pointer;
	outline: none;
	list-style: revert;
	padding: calc(var(--base-padding) * 0.6) var(--base-padding);
	background-color: #f7f7f7;
	border-bottom: 1px solid var(--border-light-color);
	transition: background-color 0.2s ease;
	display: block;
}

.collapsible-subsection>.subsection-summary::-webkit-details-marker {
	display: none;
}

.collapsible-subsection>.subsection-summary {
	list-style: none;
}

.collapsible-subsection>.subsection-summary:hover {
	background-color: #f0f0f0;
}

.collapsible-subsection>.subsection-summary>h3 {
	display: inline-block;
	margin: 0;
	font-size: 1.15em;
	color: var(--text-color);
	font-weight: 500;
}

.collapsible-subsection>.subsection-summary>h3 i {
	color: var(--primary-color);
	margin-right: 6px;
}

details[open].collapsible-subsection>.subsection-summary {
	border-bottom-color: #ddd;
}

.subsection-content {
	padding: 0.8em var(--base-padding) 0.5em var(--base-padding);
	margin-top: 0;
}

.subsection-content .cost-section {
	padding: 0;
	border: none;
	box-shadow: none;
	background: none;
	height: auto;
	margin-bottom: 0;
}

.budget-container {
	margin-top: 1em;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5em;
}

.fixed-costs .cost-item {
	display: flex;
	align-items: center;
	margin-bottom: 1em;
	padding: 10px;
	background-color: #f8f9fa;
	border-radius: 6px;
}

.fixed-costs .icon-fixed {
	color: var(--text-light-color);
	font-size: 1.8em;
	width: 2em;
	text-align: center;
	margin-right: 15px;
	flex-shrink: 0;
}

.fixed-costs .cost-details {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.fixed-costs .cost-details strong {
	font-weight: 500;
	margin-bottom: 2px;
}

.fixed-costs .cost-details span {
	font-size: 0.9em;
	color: var(--text-light-color);
	line-height: 1.4;
}

.fixed-costs .cost-details a {
	color: var(--primary-color);
	text-decoration: underline;
}

.fixed-costs .cost-tip {
	font-size: 0.85em;
	color: var(--text-light-color);
	padding: 8px 12px;
	background-color: #f0f0f0;
	border-radius: 4px;
	margin-top: 0.5em;
	line-height: 1.5;
}

.fixed-costs .cost-tip i {
	margin-right: 5px;
}

.variable-costs .table-responsive {
	flex-grow: 1;
	overflow-x: auto;
}

.budget-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 4px;
	margin-bottom: 1em;
	font-size: 0.9em;
}

.budget-table th,
.budget-table td {
	border: 1px solid var(--border-light-color);
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
	background-color: var(--content-bg-color);
}

.budget-table th {
	background-color: #f1f3f5;
	font-weight: 500;
	border-bottom-width: 2px;
	border-color: var(--border-color);
}

.budget-table td:first-child {
	font-weight: 500;
}

.budget-table td:first-child i {
	margin-right: 8px;
	color: var(--secondary-color);
	font-size: 1.2em;
	width: 1.3em;
	text-align: center;
	vertical-align: middle;
}

.budget-table td:last-child {
	font-weight: 500;
	color: var(--primary-color);
	text-align: right;
}

.budget-table tr:first-child th:first-child {
	border-top-left-radius: 6px;
}

.budget-table tr:first-child th:last-child {
	border-top-right-radius: 6px;
}

.budget-table tr:last-child td:first-child {
	border-bottom-left-radius: 6px;
}

.budget-table tr:last-child td:last-child {
	border-bottom-right-radius: 6px;
}

.saving-tips {
	flex-grow: 1;
	padding: 15px;
	border: 1px dashed var(--success-color);
	border-radius: 6px;
	background-color: #f0fff4;
}

.saving-tips ul.check-list {
	margin-bottom: 0;
	margin-top: 0;
	padding-left: 0;
	list-style: none;
}

.saving-tips ul.check-list li {
	font-weight: normal;
	line-height: 1.6;
	margin-bottom: 0.5em;
}

.saving-tips ul.check-list i {
	color: var(--success-color);
	font-size: 1em;
	margin-right: 8px;
}

.total-budget-example {
	flex-grow: 1;
	padding: 15px;
	border: 1px dashed var(--warning-color);
	border-radius: 6px;
	background-color: #fff9e6;
	display: flex;
	flex-direction: column;
}

.total-budget-example .total-amount {
	text-align: center;
	padding: 1.5em 1em;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	margin: 1em 0;
	flex-shrink: 0;
}

.total-budget-example .total-amount strong {
	display: block;
	font-size: 1em;
	color: var(--text-light-color);
	margin-bottom: 0.5em;
}

.total-budget-example .total-amount strong i {
	margin-right: 5px;
}

.total-budget-example .total-amount span {
	display: block;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 0.4em;
}

.total-budget-example .total-amount span:first-of-type {
	font-size: 2em;
}

.total-budget-example .total-amount span#example-budget-krw {
	font-size: 1.2em;
	color: var(--text-light-color);
}

.total-budget-example .total-amount small {
	font-size: 0.9em;
	color: var(--text-light-color);
}

.small-note {
	font-size: 0.9em;
	color: var(--text-light-color);
	margin-top: auto;
	padding-top: 1em;
	padding-left: 1.8em;
	position: relative;
	line-height: 1.5;
	flex-shrink: 0;
}

.small-note i {
	position: absolute;
	left: 0;
	top: 1.3em;
	color: var(--text-light-color);
}

.rate-disclaimer-note {
	display: block;
	font-size: 0.85em;
	margin-top: 0.5em;
}

.rate-disclaimer-note i {
	margin-right: 5px;
}

.rate-disclaimer-inline {
	font-size: 0.8em;
	color: var(--text-light-color);
	margin-left: 10px;
}

.apps-categories {
	margin-bottom: 2em;
}

.app-category {
	margin-bottom: 1.8em;
}

.app-category h4 {
	font-size: 1.1em;
	font-weight: 500;
	color: var(--text-color);
	margin-bottom: 0.8em;
	padding-bottom: 0.3em;
	border-bottom: 1px solid var(--border-light-color);
	display: flex;
	align-items: center;
}

.app-category h4 i {
	margin-right: 8px;
	color: var(--text-light-color);
	width: 1.2em;
	text-align: center;
}

.apps-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 15px;
	justify-items: center;
}

.app-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	position: relative;
	padding-bottom: 20px;
}

.app-icon {
	font-size: 2.5em;
	margin-bottom: 6px;
	margin-right: 0;
	width: 50px;
	height: 50px;
	line-height: 50px;
	border-radius: 10px;
	color: #fff;
	background-color: var(--primary-color);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cat-map .app-icon {
	background-color: #34A853;
}

.cat-payment .app-icon {
	background-color: #1A73E8;
}

.cat-translate .app-icon {
	background-color: #6c757d;
}

.cat-review .app-icon {
	background-color: #FF8C00;
}

.cat-taxi .app-icon {
	background-color: #fbbc05;
}

.cat-subway .app-icon {
	background-color: #dc3545;
}

.cat-vpn .app-icon {
	background-color: #4285F4;
}

.app-name {
	font-size: 0.8em;
	font-weight: 400;
	color: var(--text-color);
	line-height: 1.3;
	word-break: keep-all;
}

.schedule-table th:nth-child(3),
.schedule-table td:nth-child(3) {
	text-align: left;
	vertical-align: top;
}

.schedule-table th:nth-child(4),
.schedule-table td:nth-child(4),
.custom-itinerary-table th:nth-child(7),
.custom-itinerary-table td:nth-child(7) {
	text-align: left;
	vertical-align: top;
}

.collapsible-schedule {
	margin-bottom: 1.5em;
	border: 1px solid var(--border-light-color);
	border-radius: var(--border-radius);
	background-color: var(--content-bg-color);
	overflow: hidden;
}

.schedule-summary {
	display: block;
	cursor: pointer;
	padding: calc(var(--base-padding) * 0.8) var(--base-padding);
	background-color: #f8f9fa;
	outline: none;
	list-style: none;
	position: relative;
	font-size: 1.2em;
	font-weight: 500;
	color: var(--text-color);
	border-bottom: 1px solid var(--border-light-color);
	transition: background-color 0.2s ease;
}

.schedule-summary:hover {
	background-color: #e9ecef;
}

.schedule-summary i {
	color: var(--primary-color);
	margin-right: 8px;
	width: auto;
}

details[open]>.schedule-summary {
	border-bottom: 1px solid transparent;
}

.schedule-summary::-webkit-details-marker {
	display: none;
}

.schedule-summary::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f078";
	position: absolute;
	right: var(--base-padding);
	top: 50%;
	transform: translateY(-50%) scale(0.9);
	transition: transform 0.2s ease;
	color: var(--primary-color);
}

details[open]>.schedule-summary::after {
	content: "\f077";
}

.collapsible-schedule .table-responsive {
	padding: var(--base-padding);
	background-color: var(--content-bg-color);
	border-top: 1px solid var(--border-light-color);
}

.collapsible-schedule .table-responsive .schedule-table {
	margin-bottom: 0;
}

.chinese-phrase {
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.chinese-phrase:hover {
	background-color: #fff8e1;
	color: var(--primary-color);
}

.phrase-table {
	table-layout: fixed;
	width: 100%;
}

.phrase-table th:nth-child(1),
.phrase-table td:nth-child(1) {
	width: 25%;
}

.phrase-table th:nth-child(2),
.phrase-table td:nth-child(2) {
	width: 30%;
}

.phrase-table th:nth-child(3),
.phrase-table td:nth-child(3) {
	width: 25%;
}

.phrase-table th:nth-child(4),
.phrase-table td:nth-child(4) {
	width: 20%;
}

.checklist-table tbody .checklist-category {
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s ease;
}

.checklist-table tbody .checklist-category:hover {
	background-color: #f0f0f0;
}

.checklist-table tbody tr.prepared td {
	background-color: #d1e7dd !important;
	color: #0f5132;
	text-decoration: line-through;
}

.checklist-table tbody tr.prepared td.checklist-category::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--success-color);
	margin-right: 8px;
	font-size: 0.9em;
	text-decoration: none;
	display: inline-block;
}

.custom-itinerary-section {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px dashed var(--border-light-color);
}

.custom-itinerary-section h4 {
	font-size: 1.3em;
	color: var(--primary-color);
	margin-bottom: 1em;
}

.custom-itinerary-section h4 i {
	margin-right: 8px;
}

.itinerary-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
	flex-wrap: wrap;
	gap: 10px;
}

.itinerary-controls .control-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.itinerary-controls label {
	font-size: 0.9em;
	font-weight: 500;
}

.itinerary-controls select,
.itinerary-controls button,
.itinerary-summary select,
#add-itinerary-item-btn {
	padding: 6px 10px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 0.9em;
	background-color: var(--content-bg-color);
	font-family: inherit;
	vertical-align: middle;
}

.itinerary-controls button,
#add-itinerary-item-btn {
	background-color: var(--primary-color);
	color: white;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.itinerary-controls button:hover,
#add-itinerary-item-btn:hover {
	background-color: var(--primary-color);
	opacity: 0.85;
}

.itinerary-controls button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	opacity: 0.7;
}

#add-itinerary-item-btn.button-primary {
	background-color: var(--primary-color);
	font-size: 1em;
	padding: 8px 15px;
}

#add-itinerary-item-btn.button-primary:hover {
	opacity: 0.85;
}


.custom-itinerary-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
	font-size: 0.9em;
}

.custom-itinerary-table th,
.custom-itinerary-table td {
	border: 1px solid var(--border-light-color);
	padding: 10px 12px;
	text-align: left;
	vertical-align: middle;
}

.custom-itinerary-table thead th {
	background-color: #f8f9fa;
	font-weight: 500;
	position: sticky;
	top: 0;
	z-index: 1;
}

.custom-itinerary-table tbody tr {
	cursor: grab;
}

.custom-itinerary-table tbody tr:not(.sortable-chosen) {
	cursor: pointer;
}


.custom-itinerary-table tbody tr:hover {
	background-color: #f1f3f5;
}

.custom-itinerary-table td:nth-child(1),
.custom-itinerary-table th:nth-child(1) {
	text-align: center;
	width: 40px;
}

.custom-itinerary-table td:nth-child(5),
.custom-itinerary-table th:nth-child(5) {
	text-align: right;
	width: 15%;
}

.custom-itinerary-table td:nth-child(6),
.custom-itinerary-table th:nth-child(6) {
	width: 10%;
}

.custom-itinerary-table td a {
	color: var(--primary-color);
	text-decoration: none;
}

.custom-itinerary-table td a:hover {
	text-decoration: underline;
}

.custom-itinerary-table input[type="checkbox"] {
	vertical-align: middle;
	cursor: pointer;
}

.itinerary-summary {
	margin-top: 1.5em;
	padding: 1em;
	background-color: #f8f9fa;
	border: 1px solid var(--border-light-color);
	border-radius: var(--border-radius);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.itinerary-summary .total-label {
	font-weight: 500;
}

.itinerary-summary strong {
	font-size: 1.2em;
	color: var(--primary-color);
	margin: 0 5px;
}

.itinerary-summary select {
	max-width: 80px;
}

#itinerary-rate-disclaimer {
	margin-left: 10px;
	font-size: 0.8em;
	color: var(--text-light-color);
}


.table-responsive {
	overflow-x: auto;
	margin-bottom: 1em;
}


@media (max-width: 767px) {
	.custom-itinerary-table {
		font-size: 0.85em;
	}

	.custom-itinerary-table th,
	.custom-itinerary-table td {
		padding: 8px 10px;
		white-space: nowrap;
	}

	.custom-itinerary-table td:nth-child(4),
	.custom-itinerary-table td:nth-child(7) {
		white-space: normal;
		min-width: 150px;
	}
	.itinerary-controls, .itinerary-summary {
		justify-content: flex-start;
	}
	.itinerary-summary {
		padding: 0.8em;
	}

    .collapsible-main-section {
		border: none;
		border-radius: 0;
		margin-left: 0;
		margin-right: 0;
		box-shadow: none;
	}
	.collapsible-main-section > summary {
		border-radius: 0;
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
	}
	.collapsible-main-section > .section-content {
	    padding-left: var(--base-padding);
	    padding-right: var(--base-padding);
        background-color: var(--content-bg-color);
	}

	.collapsible-subsection {
		border: 1px solid var(--border-light-color);
		border-left: none;
		border-right: none;
		border-radius: 0;
		background-color: transparent;
        margin-left: 0;
        margin-right: 0;
	}
    .collapsible-subsection > .subsection-summary {
        background-color: #f9f9f9;
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
    }
	.collapsible-subsection > .subsection-content {
		background-color: transparent;
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
	}

    .task-card {
        border: 1px solid var(--border-light-color);
        box-shadow: none;
        padding: var(--base-padding);
        border-radius: 0;
    }
    #plan > h1, #plan > p {
        padding-left: var(--base-padding);
        padding-right: var(--base-padding);
    }
     #plan > hr {
        margin-left: var(--base-padding);
        margin-right: var(--base-padding);
    }
}


.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.active {
	display: flex;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease;
}

.modal-overlay.active .modal-content {
	transform: translateY(0);
}

.modal-content h3 {
	margin-top: 0;
	margin-bottom: 1.5em;
	color: var(--primary-color);
	text-align: center;
}

.modal-content h3 i {
	margin-right: 8px;
}


.close-modal-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 1.8em;
	color: #aaa;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 5px;
}

.close-modal-btn:hover {
	color: #333;
}

#edit-item-form .form-group {
	margin-bottom: 1em;
}

#edit-item-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	font-size: 0.9em;
}

#edit-item-form input[type="text"],
#edit-item-form input[type="number"],
#edit-item-form input[type="date"],
#edit-item-form select,
#edit-item-form textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 1em;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.075);
	box-sizing: border-box;
	font-family: inherit;
	background-color: var(--content-bg-color);
}

#edit-item-form textarea {
	resize: vertical;
	min-height: 60px;
}

#edit-item-form input[type="number"] {
	text-align: right;
	-moz-appearance: textfield;
	appearance: textfield;
}
#edit-item-form input[type="number"]::-webkit-outer-spin-button,
#edit-item-form input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#edit-item-form input[type="date"] {
	min-height: 38px;
	line-height: normal;
}


.modal-actions {
	margin-top: 1.5em;
	text-align: right;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.modal-actions button {
	padding: 10px 20px;
	cursor: pointer;
	border: none;
	border-radius: 4px;
	font-size: 1em;
}

.modal-actions .button-primary {
	background-color: var(--primary-color);
	color: white;
}
.modal-actions .button-primary:hover {
	opacity: 0.9;
}

.modal-actions .button-secondary {
	background-color: #ccc;
	color: #333;
	margin-left: auto;
}

.modal-actions .button-secondary:hover {
	background-color: #bbb;
}

.modal-actions .button-danger {
	background-color: var(--danger-color);
	color: white;
}
.modal-actions .button-danger:hover {
	background-color: var(--danger-dark-color);
	opacity: 0.9;
}


.custom-itinerary-table tbody tr.sortable-ghost {
	opacity: 0.4;
	background-color: var(--primary-light-color);
}
.custom-itinerary-table tbody tr.sortable-chosen {
	cursor: grabbing !important;
}

.info-icon-btn {
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 1.1em;
	color: var(--primary-color);
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
	padding: 5px;
}

.info-icon-btn:hover {
	color: var(--secondary-color);
	transform: translateX(-50%) scale(1.1);
}

.guide-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1050;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.guide-modal-overlay.active {
	display: flex;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease;
}

.guide-modal-content {
	background-color: var(--content-bg-color);
	padding: 25px 30px;
	border-radius: var(--border-radius);
	max-width: 90%;
	width: 600px;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	position: relative;
	transform: translateY(-20px);
	transition: transform 0.3s ease-out;
}

.guide-modal-overlay.active .guide-modal-content {
	transform: translateY(0);
}

.guide-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 1.8em;
	color: #aaa;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 5px;
}

.guide-modal-close:hover {
	color: var(--danger-color);
}

.guide-modal-content h2 {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.4em;
	color: var(--primary-color);
	border-bottom: 1px solid var(--border-light-color);
	padding-bottom: 0.5em;
	display: flex;
	align-items: center;
}
.guide-modal-content h2 i {
	margin-right: 0.5em;
	font-size: 1em;
	color: inherit;
	width: auto;
}

.guide-modal-content h3 {
	margin-top: 1.5em;
	margin-bottom: 0.7em;
	font-size: 1.1em;
	color: var(--text-color);
	display: flex;
	align-items: center;
}
.guide-modal-content h3 i {
	margin-right: 0.5em;
	color: var(--primary-color);
	font-size: 0.9em;
	width: auto;
}

.guide-modal-content p,
.guide-modal-content ol,
.guide-modal-content ul {
	margin-bottom: 1em;
	font-size: 0.95em;
	line-height: 1.7;
	color: var(--text-color);
}
.guide-modal-content ol,
.guide-modal-content ul {
	padding-left: 20px;
}
.guide-modal-content li {
	margin-bottom: 0.5em;
}
.guide-modal-content strong {
	font-weight: 600;
	color: var(--secondary-color);
}
.guide-modal-content img {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin: 1em auto;
	max-width: 90%;
	display: block;
	background-color: #f9f9f9;
	min-height: 100px;
}

/* --- Task Card Styling --- */
.task-card-container {
    display: grid;
    grid-template-columns: 1fr; /* 모바일에서는 기본 단일 열 */
    gap: var(--base-padding, 15px);
    margin-bottom: 1.5em;
}
@media (min-width: 300px) { /* 태블릿 및 데스크탑에서 두 열로 변경 */
    .task-card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: calc(var(--base-padding, 15px) * 1.2);
    }
}

.task-card {
    background: var(--content-bg-color); 
    border: 1px solid var(--border-light-color); 
    border-radius: var(--border-radius, 8px);
    padding: calc(var(--base-padding) * 1.2) calc(var(--base-padding) * 1.5); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden; 
}
.task-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.task-card .task-icon {
    font-size: 2.2em; 
    color: white; 
    margin-bottom: 0.8em;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.task-card:hover .task-icon {
    transform: scale(1.1) rotate(5deg);
}
.task-card h3 {
    font-size: 1.25em; 
    margin-top: 0;
    margin-bottom: 0.6em;
    color: var(--primary-color); 
    font-weight: 600; 
}
.task-card p {
    font-size: 0.9em;
    color: var(--text-light-color);
    margin-bottom: 1.2em; 
    flex-grow: 1;
    line-height: 1.5;
}
.task-card .task-button {
    display: inline-block;
    padding: 10px 22px; 
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px; 
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.task-card .task-button:hover {
    background: var(--hover-accent-color); 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* --- Task Card Styling End --- */


/* --- plan-step-overlay Styling (iframe 팝업) --- */
.plan-step-overlay {
    position: fixed;
    top: 50px; /* 사용자가 조정한 값 */
    bottom: var(--nav-height); 
    left: 0;
    right: 0; 
    width: 100%; 
    background-color: var(--content-bg-color, #fff);
    z-index: 1001; 
    overflow: hidden; /* 여기의 overflow:hidden이 중요합니다. */
    display: none;
    flex-direction: column;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; 
    transform: translateX(100%);
    opacity: 0;
    /* --- 추가: 전체 오버레이에 상단 원형 코너 적용 --- */
    border-top-left-radius: calc(var(--border-radius, 8px) + 4px);
    border-top-right-radius: calc(var(--border-radius, 8px) + 4px);
}

.plan-step-overlay.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}
.plan-step-header {
    display: flex;
    align-items: center;
    padding: 12px var(--base-padding); 
    background-color: var(--primary-color); 
    color: white; 
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    box-shadow: 0 3px 8px rgba(0,0,0,0.2); 
    flex-shrink: 0;
    position: sticky; 
    top: 0; /* .plan-step-overlay 내부에서의 sticky */
    z-index: 2;
    /* 헤더 자체에는 원형 코너를 적용하지 않음 (부모인 .plan-step-overlay가 처리) */
}
.plan-step-close-btn {
    background: none;
    border: none;
    font-size: 1.1em;
    color: white; 
    cursor: pointer;
    padding: 5px 10px 5px 0;
    display: flex;
    align-items: center;
    z-index: 3;
}
.plan-step-close-btn i {
    margin-right: 6px;
}
.plan-step-title {
    font-size: 1.1em;
    color: white; 
    margin: 0;
    flex-grow: 1;
    text-align: center;
    padding-right: 40px; 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.plan-step-body {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--content-bg-color); 
}
.plan-step-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* --- 제거: iframe 자체의 원형 코너는 부모인 .plan-step-overlay가 처리하도록 함 --- */
    /* border-top-left-radius: var(--border-radius, 12px); */
    /* border-top-right-radius: var(--border-radius, 12px); */
    /* overflow: hidden; -- iframe 자체의 overflow:hidden은 불필요할 수 있음 */
}
/* --- plan-step-overlay Styling End --- */