/* Simple Date Calculator - Full Styles */
/* Global Color Palette - Page background removed (transparent) */

.sdc-date-calculator {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;  /* Removed white background */
    padding: 30px 20px;
}

.sdc-container {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #ffffff;  /* Keep white for card area only */
    overflow: hidden;
}

/* Rest of the CSS remains exactly the same as before */
.sdc-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 20px 0 20px;
}

.sdc-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 8px;
}

.sdc-header p {
    font-size: 1rem;
    color: #4b5563;
}

.sdc-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    padding: 0 20px;
}

.sdc-tab-btn {
    flex: 0 1 auto;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4b5563;
    font-family: inherit;
}

.sdc-tab-btn:hover {
    background-color: #e8f2f4;
    color: #0e7e94;
    border-color: #0e7e94;
}

.sdc-tab-btn.active {
    background-color: #0e7e94;
    color: #ffffff;
    border-color: #0e7e94;
}

.sdc-tab-content {
    margin-bottom: 20px;
    padding: 0 20px;
}

.sdc-tab-content {
    display: none;
}

.sdc-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sdc-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe4ea;
}

.sdc-card-header {
    background: #0b1120;
    padding: 20px 24px;
    border-bottom: 1px solid #dbe4ea;
}

.sdc-card-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.sdc-card-header p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.sdc-card-body {
    padding: 24px;
}

.sdc-input-group {
    margin-bottom: 20px;
}

.sdc-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.sdc-date-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.sdc-date-input:focus {
    border-color: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 100, 117, 0.1);
}

.sdc-duration-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sdc-duration-field {
    flex: 1;
    text-align: center;
}

.sdc-duration-field input {
    width: 100%;
    text-align: center;
    padding: 10px 8px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-size: 0.95rem;
}

.sdc-duration-field input:focus {
    border-color: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 100, 117, 0.1);
}

.sdc-duration-field span {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #6b7280;
}

.sdc-operation-select {
    margin-bottom: 20px;
}

.sdc-operation-select label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.sdc-select {
    width: 100%;
    padding: 0 12px;
    height: 44px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #ffffff;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.sdc-select:focus {
    border-color: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 100, 117, 0.1);
}

.sdc-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.sdc-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
    border: 1px solid transparent;
}

.sdc-btn-primary {
    background: #0e7e94;
    color: #ffffff;
    border-color: #0e7e94;
}

.sdc-btn-primary:hover {
    background: #0a6475;
    border-color: #0a6475;
}

.sdc-btn-primary:active {
    background: #0a6475;
    border-color: #0a6475;
    transform: translateY(1px);
}

.sdc-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 126, 148, 0.3);
}

.sdc-btn-secondary {
    background: #e8f2f4;
    color: #0e7e94;
    border-color: #e8f2f4;
}

.sdc-btn-secondary:hover {
    background: #0e7e94;
    color: #ffffff;
    border-color: #0e7e94;
}

.sdc-btn-secondary:active {
    background: #0a6475;
    color: #ffffff;
    border-color: #0a6475;
    transform: translateY(1px);
}

.sdc-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 126, 148, 0.3);
}

.sdc-result {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #0e7e94;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sdc-result.active {
    display: block;
}

.sdc-result p {
    margin: 8px 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.sdc-result hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.sdc-number {
    color: #0e7e94;
    font-weight: 700;
    font-size: 1.05em;
}

.sdc-result strong {
    font-weight: 600;
    color: #111827;
}

.sdc-frequency-row {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
    flex-wrap: wrap;
}

.sdc-frequency-item {
    text-align: center;
    min-width: 40px;
}

.sdc-info {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 24px 20px;
}

.sdc-info h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 700;
}

.sdc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .sdc-info-grid {
        grid-template-columns: 1fr;
    }
}

.sdc-info-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e8f2f4;
}

.sdc-info-card h4 {
    color: #0e7e94;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.sdc-info-card p {
    color: #4b5563;
    line-height: 1.4;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 480px) {
    .sdc-date-calculator {
        padding: 20px 12px;
    }
    .sdc-header h1 {
        font-size: 1.6rem;
    }
    .sdc-tabs {
        gap: 8px;
    }
    .sdc-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .sdc-card-header {
        padding: 16px;
    }
    .sdc-card-header h2 {
        font-size: 1.2rem;
    }
    .sdc-card-body {
        padding: 16px;
    }
    .sdc-duration-fields {
        flex-direction: column;
        gap: 12px;
    }
    .sdc-actions {
        flex-direction: column;
    }
    .sdc-btn {
        width: 100%;
    }
}