/**
 * Public styles for Bryllups Huskeliste Pro
 *
 * @package    Bryllups_Huskeliste
 * @subpackage Bryllups_Huskeliste/public
 * @author     Jesper Schwaner
 * @version    2.05.02
 */

/* General styles */
.bryllups-huskeliste-container {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    color: #444;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0e9f2;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0icm9zZXBhdHRlcm4iIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIyMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjhlY2ZiIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3Jvc2VwYXR0ZXJuKSIgb3BhY2l0eT0iMC4xIiAvPjwvc3ZnPg==');
    background-repeat: repeat;
}

.bryllups-huskeliste-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
    color: #a25b85; /* Mørk rosa/lilla farve */
    padding-bottom: 18px;
    border-bottom: 1px solid #f0e9f2;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
    position: relative;
}

/* Tilføj dekorative blomster til titlerne */
.bryllups-huskeliste-title:before,
.bryllups-huskeliste-title:after {
    content: "❀";
    font-size: 24px;
    color: #d3b5cf;
    position: absolute;
    bottom: 5px;
}

.bryllups-huskeliste-title:before {
    left: 30%;
}

.bryllups-huskeliste-title:after {
    right: 30%;
}

.bryllups-huskeliste-description {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

/* Message styles */
.message,
.message-box {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.message.success,
.message-box.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.message.error,
.message-box.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.message-box.loading {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

/* Budget calculator styles */
.bryllups-budget {
    margin-bottom: 30px;
}

.budget-items {
    margin-bottom: 20px;
}

.budget-item {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.budget-item-field {
    flex: 1;
    margin-right: 10px;
}

.budget-category {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.budget-amount {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.budget-currency {
    margin-left: 5px;
    color: #666;
}

.budget-item-actions {
    margin-left: 10px;
}

.remove-budget-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #d9534f;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 5px 10px;
}

.budget-total {
    font-size: 20px;
    font-weight: 600;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 3px;
    text-align: center;
    margin: 20px 0;
}

/* Checklist styles */
.bryllups-checklist {
    margin-bottom: 30px;
}

.checklist-section {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.checklist-section-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.section-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    border: none;
    background: transparent;
    padding: 0;
}

.section-actions {
    display: flex;
}

.add-checklist-item,
.remove-checklist-section {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.add-checklist-item {
    color: #5cb85c;
}

.remove-checklist-section {
    color: #d9534f;
}

.checklist-section-items {
    padding: 15px;
}

.checklist-item {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.checklist-item.completed .checklist-item-text textarea {
    text-decoration: line-through;
    color: #999;
}

.checklist-item-check {
    margin-right: 10px;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

.checklist-item-complete {
    width: 20px;
    height: 20px;
}

.checklist-item-content {
    flex: 1;
}

.checklist-item-text textarea {
    width: 100%;
    min-height: 40px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
}

.checklist-item-controls {
    display: flex;
    margin-top: 5px;
}

.checklist-add-link,
.checklist-add-image,
.checklist-add-note,
.remove-checklist-item {
    margin-right: 5px;
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

.remove-checklist-item {
    color: #d9534f;
    margin-left: auto;
}

.checklist-note {
    margin-top: 10px;
    padding: 10px;
    background: #fff9c4;
    border-left: 3px solid #ffd54f;
    font-size: 14px;
}

/* Download form styles */
.download-checklist-form,
.download-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.download-checklist-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

.download-form-fields {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.download-form-field {
    flex: 1;
    min-width: 250px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.download-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.download-form-field input,
.download-form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.download-options {
    margin-bottom: 20px;
}

.download-options-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.download-options-field {
    margin-bottom: 8px;
}

/* Button styles */
.bryllups-huskeliste-button,
.btn {
    display: inline-block;
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    background: #a25b85; /* Mørk rosa/lilla farve */
    color: white;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    margin-right: 12px;
    margin-bottom: 12px;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bryllups-huskeliste-button:hover,
.btn:hover {
    background: #8a496f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.bryllups-huskeliste-button.secondary,
.btn.secondary-btn {
    background: #d3b5cf;
    color: #444;
}

.bryllups-huskeliste-button.secondary:hover,
.btn.secondary-btn:hover {
    background: #c3a2bf;
}

.btn.primary-btn {
    background: #a25b85;
    color: white;
}

.btn.primary-btn:hover {
    background: #8a496f;
}

/* Planner styles (combined budget and checklist) */
.bryllups-planner-container {
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    background: #fff;
    padding: 30px;
    border: 1px solid #f0e9f2;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0icm9zZXBhdHRlcm4iIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIyMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjhlY2ZiIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3Jvc2VwYXR0ZXJuKSIgb3BhY2l0eT0iMC4xIiAvPjwvc3ZnPg==');
    background-repeat: repeat;
}

.bryllups-planner-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #a25b85;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 20px;
}

.bryllups-planner-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100px;
    height: 2px;
    background-color: #d3b5cf;
    transform: translateX(-50%);
}

/* Tabs for planner */
.bryllups-planner-tabs {
    margin-top: 30px;
}

.bryllups-tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-bottom: 2px solid #f0e9f2;
    flex-wrap: wrap;
    justify-content: center;
}

.bryllups-tab-nav li {
    margin: 0;
}

.bryllups-tab-nav li a {
    display: block;
    padding: 12px 20px;
    color: #888;
    text-decoration: none;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.bryllups-tab-nav li.active a {
    color: #a25b85;
}

.bryllups-tab-nav li a:hover {
    color: #a25b85;
}

.bryllups-tab-nav li.active a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #a25b85;
}

.bryllups-tab-content {
    background: #fff;
}

.bryllups-tab-pane {
    display: none;
    padding: 20px 0;
}

.bryllups-tab-pane.active {
    display: block;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Download options for planner */
.download-options {
    margin-bottom: 25px;
}

.download-options h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.download-options-controls {
    display: flex;
    gap: 20px;
}

.download-options-controls label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.download-options-controls input[type="checkbox"] {
    margin-right: 8px;
}

.direct-download-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.download-form-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

.download-status {
    margin-top: 15px;
    min-height: 60px;
}

/* Form group styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d3b5cf;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #a25b85;
    outline: none;
    box-shadow: 0 0 0 2px rgba(162, 91, 133, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Lite version notice */
.bh-lite-notice {
    background-color: #fff0f7;
    border-left: 4px solid #a25b85;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    position: relative;
    overflow: hidden;
}

.bh-lite-notice:before {
    content: "❀";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(162, 91, 133, 0.1);
    font-size: 60px;
}

.bh-lite-notice a {
    display: inline-block;
    color: #a25b85;
    text-decoration: none;
    font-weight: 600;
    margin-top: 5px;
    transition: color 0.3s;
    position: relative;
}

.bh-lite-notice a:hover {
    color: #8a496f;
}

.bh-lite-notice a:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #a25b85;
    transition: transform 0.3s;
    transform-origin: right;
    transform: scaleX(0);
}

.bh-lite-notice a:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer styles */
.bryllups-huskeliste-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0e9f2;
    font-size: 0.9em;
    color: #888;
    text-align: center;
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}

.bryllups-huskeliste-footer a {
    color: #a25b85;
    text-decoration: none;
    transition: color 0.3s;
}

.bryllups-huskeliste-footer a:hover {
    color: #8a496f;
}

/* Responsive styles */
@media (max-width: 768px) {
    .budget-item {
        flex-direction: column;
    }
    
    .budget-item-field {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .budget-item-actions {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .checklist-section-header {
        flex-direction: column;
    }
    
    .section-actions {
        margin-top: 10px;
    }
    
    .email-form-field {
        width: 100%;
        margin-right: 0;
    }
}
