/* DrTool Time Calculator - Muster Module Version */
/* Outer background transparent, follows global color palette */

.drtool-time-calculator {
    font-family: 'Manrope', sans-serif;
    background: transparent; /* Removed page background */
    padding: 30px 20px;
}

.drtool-container {
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

/* Header */
.drtool-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 20px 0 20px;
}

.drtool-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 8px;
}

.drtool-header p {
    font-size: 1rem;
    color: #4b5563;
}

/* Tabs */
.drtool-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
    padding: 0 20px;
}

.drtool-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: 'Manrope', sans-serif;
}

.drtool-tab-btn:hover {
    background-color: #e8f2f4;
    color: #0e7e94;
    border-color: #0e7e94;
}

.drtool-tab-btn.active {
    background-color: #0e7e94;
    color: #ffffff;
    border-color: #0e7e94;
}

/* Tab Content */
.drtool-tab-content {
    margin-bottom: 20px;
    padding: 0 20px;
}

.drtool-tab-pane {
    display: none;
}

.drtool-tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card */
.drtool-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe4ea;
}

.drtool-card-header {
    background: #0b1120;
    padding: 20px 24px;
    border-bottom: 1px solid #dbe4ea;
}

.drtool-card-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.drtool-card-header p {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

.drtool-card-body {
    padding: 24px;
}

/* Time input with Now button */
.drtool-time-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.drtool-time-input-wrapper input {
    flex: 1;
}

.drtool-now-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    background: #0e7e94;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Manrope', sans-serif;
    height: 44px;
    line-height: 1;
}

.drtool-now-btn:hover {
    background: #0a6475;
}

.drtool-now-btn:active,
.drtool-now-btn:focus {
    background: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 126, 148, 0.3);
}

/* Input Groups */
.drtool-input-group {
    margin-bottom: 20px;
}

.drtool-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

input[type="time"],
.drtool-duration-field 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: 'Manrope', sans-serif;
}

input[type="time"]:focus,
.drtool-duration-field input:focus {
    border-color: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 100, 117, 0.1);
}

/* Checkbox */
.drtool-checkbox-group {
    margin-bottom: 20px;
}

.drtool-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    font-size: 0.85rem;
}

.drtool-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #0e7e94;
    margin: 0;
}

/* Duration Fields */
.drtool-duration-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.drtool-duration-field {
    flex: 1;
    text-align: center;
}

.drtool-duration-field input {
    text-align: center;
    padding: 10px 8px;
}

.drtool-duration-field span {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #6b7280;
}

/* Operation Dropdown */
.drtool-operation-select {
    margin-bottom: 20px;
}

.drtool-operation-select label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.drtool-select {
    width: 100%;
    padding: 0 12px;
    height: 44px;
    border: 1px solid #dbe4ea;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #ffffff;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    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;
}

.drtool-select:focus {
    border-color: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 100, 117, 0.1);
}

/* Buttons - no movement, global colors */
.drtool-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Manrope', sans-serif;
}

.drtool-btn-primary {
    background: #0e7e94;
    color: #ffffff;
    border: 1px solid #0e7e94;
}

.drtool-btn-primary:hover {
    background: #0a6475;
    border-color: #0a6475;
}

.drtool-btn-primary:active,
.drtool-btn-primary:focus {
    background: #0a6475;
    border-color: #0a6475;
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 126, 148, 0.3);
    transform: none;
}

/* Result Box */
.drtool-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); }
}

.drtool-result.active {
    display: block;
}

.drtool-result h3 {
    color: #0e7e94;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.drtool-result p {
    margin: 6px 0;
    color: #4b5563;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.drtool-result strong {
    color: #0e7e94;
}

/* Info Section */
.drtool-info {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 24px 20px;
}

.drtool-info h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 700;
}

.drtool-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .drtool-info-grid {
        grid-template-columns: 1fr;
    }
}

.drtool-info-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e8f2f4;
}

.drtool-info-card h4 {
    color: #0e7e94;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.drtool-info-card p {
    color: #4b5563;
    line-height: 1.4;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .drtool-time-calculator {
        padding: 20px 12px;
    }
    .drtool-header h1 {
        font-size: 1.6rem;
    }
    .drtool-tabs {
        gap: 8px;
    }
    .drtool-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .drtool-card-header {
        padding: 16px;
    }
    .drtool-card-header h2 {
        font-size: 1.2rem;
    }
    .drtool-card-body {
        padding: 16px;
    }
    .drtool-duration-fields {
        flex-direction: column;
        gap: 12px;
    }
    .drtool-time-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .drtool-now-btn {
        width: 100%;
        margin-top: 6px;
    }
    .drtool-result p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Print Styles */
@media print {
    .drtool-time-calculator {
        background: white;
        padding: 0;
    }
    .drtool-btn,
    .drtool-tabs,
    .drtool-now-btn {
        display: none;
    }
    .drtool-container {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    .drtool-card-header {
        background: #f0f0f0;
        color: black;
        border-bottom: 1px solid #ccc;
    }
    .drtool-card-header h2 {
        color: black;
    }
}