/**
 * OnlineToolsPlanet - Main Stylesheet
 * Version: 2.0.0
 */

/* ============================================
   COMMON STYLES FOR ALL TOOLS
   ============================================ */

.otp-tool-wrapper {
    max-width: 650px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.otp-tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 30px;
    color: white;
}

.otp-tool-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.otp-tool-body {
    background: white;
    padding: 30px;
}

/* Form Elements */
.otp-form-group {
    margin-bottom: 20px;
}

.otp-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.otp-input,
.otp-select,
.otp-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.otp-input:focus,
.otp-select:focus,
.otp-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.otp-select {
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.otp-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.otp-button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.otp-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.otp-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.otp-button-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.otp-button-secondary:hover {
    background: #667eea;
    color: white;
}

.otp-button-full {
    width: 100%;
}

.otp-button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Result Display */
.otp-result {
    margin-top: 25px;
    padding: 20px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    display: none;
}

.otp-result.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.otp-result-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.otp-result-value {
    font-size: 24px;
    color: #667eea;
    font-weight: 700;
    word-break: break-word;
}

/* Info Boxes */
.otp-info-box {
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 8px;
    font-size: 13px;
    color: #1976D2;
    margin-top: 20px;
}

.otp-warning-box {
    padding: 15px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    font-size: 13px;
    color: #f57c00;
    margin-top: 20px;
}

.otp-formula-box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

/* Grid Layouts */
.otp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.otp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Loading Spinner */
.otp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   METAL PRICES WIDGET STYLES
   ============================================ */

.otp-metal-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.otp-metal-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.otp-metal-card.gold {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.otp-metal-card.silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #757575 100%);
    color: white;
}

.otp-metal-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.otp-metal-price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.otp-metal-change {
    font-size: 14px;
    font-weight: 500;
}

.otp-metal-change.positive {
    color: #4caf50;
}

.otp-metal-change.negative {
    color: #f44336;
}

.otp-metal-updated {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 10px;
}

/* Chart Container */
.otp-chart-container {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .otp-tool-wrapper {
        margin: 20px;
    }
    
    .otp-tool-header {
        padding: 20px;
    }
    
    .otp-tool-title {
        font-size: 24px;
    }
    
    .otp-tool-body {
        padding: 20px;
    }
    
    .otp-grid-2,
    .otp-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .otp-button-group {
        flex-direction: column;
    }
    
    .otp-result-value {
        font-size: 20px;
    }
    
    .otp-metal-price {
        font-size: 28px;
    }
}

/* ============================================
   POMODORO TIMER SPECIFIC STYLES
   ============================================ */

.otp-timer-display {
    font-size: 72px;
    font-weight: 700;
    text-align: center;
    color: #667eea;
    margin: 30px 0;
    font-variant-numeric: tabular-nums;
}

.otp-timer-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.otp-timer-status {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.otp-session-counter {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-top: 20px;
}

/* ============================================
   QR CODE SPECIFIC STYLES
   ============================================ */

.otp-qr-display {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.otp-qr-image {
    max-width: 100%;
    height: auto;
    border: 10px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* ============================================
   TIMEZONE CONVERTER SPECIFIC
   ============================================ */

.otp-timezone-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.otp-timezone-time {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.otp-timezone-date {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   CURRENCY CONVERTER SPECIFIC
   ============================================ */

.otp-exchange-rate {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.otp-last-updated {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    text-align: right;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.otp-text-center { text-align: center; }
.otp-text-right { text-align: right; }
.otp-text-left { text-align: left; }

.otp-mb-10 { margin-bottom: 10px; }
.otp-mb-20 { margin-bottom: 20px; }
.otp-mb-30 { margin-bottom: 30px; }

.otp-mt-10 { margin-top: 10px; }
.otp-mt-20 { margin-top: 20px; }
.otp-mt-30 { margin-top: 30px; }

.otp-hidden { display: none; }
.otp-visible { display: block; }

.otp-success { color: #4caf50; }
.otp-error { color: #f44336; }
.otp-warning { color: #ff9800; }

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .otp-button,
    .otp-button-group {
        display: none;
    }
    
    .otp-tool-wrapper {
        box-shadow: none;
    }
}
