/* Main Container */
.dfc-calculator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    padding: 20px 0;
}

.dfc-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dfc-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

/* Form */
.dfc-form {
    margin-bottom: 20px;
}

.dfc-form-group {
    margin-bottom: 20px;
    position: relative;
}

.dfc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dfc-input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #0073aa;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
    font-weight: 500;
}

.dfc-input::placeholder {
    color: #999999;
    font-weight: normal;
}

.dfc-input:focus {
    outline: none;
    border-color: #005a87;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.5);
    background-color: #fafbfc;
}

/* Suggestions */
.dfc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #0073aa;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dfc-suggestions.show {
    display: block;
}

.dfc-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.dfc-suggestion-item:last-child {
    border-bottom: none;
}

.dfc-suggestion-item:hover {
    background-color: #e8f4f8;
    color: #005a87;
    padding-left: 20px;
}

/* Buttons */
.dfc-button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dfc-button:hover {
    background-color: #005a87;
}

.dfc-button:active {
    transform: translateY(1px);
}

.dfc-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.dfc-button-secondary {
    background: #666;
    margin-top: 15px;
}

.dfc-button-secondary:hover {
    background: #555;
}

/* Results */
.dfc-result {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.dfc-result-content h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.dfc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.dfc-result-item:last-of-type {
    border-bottom: none;
}

.dfc-result-item.dfc-total {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 2px solid #0073aa;
}

.dfc-label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.dfc-value {
    color: #0073aa;
    font-weight: 700;
    font-size: 16px;
    margin-left: 10px;
}

.dfc-result-item.dfc-total .dfc-value {
    color: #27ae60;
    font-size: 20px;
}

/* Error Message */
.dfc-error {
    background: #fee;
    border-left: 4px solid #d32f2f;
    padding: 15px;
    border-radius: 6px;
    color: #d32f2f;
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .dfc-container {
        padding: 20px;
        margin: 10px;
    }
    
    .dfc-container h2 {
        font-size: 20px;
    }
    
    .dfc-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Admin Styles */
.dfc-form-table {
    width: 100%;
    border-collapse: collapse;
}

.dfc-form-table th,
.dfc-form-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dfc-form-table th {
    font-weight: 600;
    width: 25%;
}

.dfc-form-table .regular-text {
    width: 100%;
    max-width: 400px;
}
