/* ============================================
   MICROSERVICE PAGE CARD SYSTEM
   Standardized card styling for all tool pages
   ============================================ */

/* Container for the entire page */
.tool-page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 90px; /* Account for floating navigation */
}

/* Main card wrapper - glass morphism design */
.tool-card-wrapper {
    background: rgba(255, 255, 255, 1.0);  /* 100% opacity as requested */
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 0.6s ease;
}

/* Header section */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tool-header h1 .emoji {
    font-size: 40px;
}

.tool-header p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto 12px auto;
}

/* Slide up animation */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .tool-page-container {
        padding: 15px;
        margin-top: 80px;
    }

    .tool-card-wrapper {
        padding: 20px !important; /* Smaller padding */
        border-radius: 16px;
    }

    .tool-header {
        margin-bottom: 20px !important; /* Reduced margin */
    }

    .tool-header h1 {
        font-size: 24px !important; /* Smaller title */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        flex-direction: row !important;
        gap: 8px !important;
    }

    .tool-header h1 .emoji {
        font-size: 28px !important; /* Properly sized icon */
        display: inline-block !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Hide description on mobile to save space */
    .tool-header p {
        display: none !important;
    }
    
    /* Fix microservice time selector on mobile */
    .floating-time-btn,
    #pp-phase-switch {
        position: fixed !important;
        top: 95px !important; /* Moved down 25px from 70px to avoid navbar overlap */
        right: 12px !important;
        z-index: 999 !important;
    }
    
    .floating-time-selector {
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
    }
    
    .floating-time-selector select {
        font-size: 12px !important;
        padding: 2px 4px !important;
    }
    
    /* Center icons within card content */
    .converter-card,
    .drop-zone,
    .tool-icon-wrapper,
    .white-box-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* Center specific card elements */
    .drop-icon,
    .drop-text,
    .drop-subtext {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .tool-page-container {
        padding: 12px;
        margin-top: 70px;
    }

    .tool-card-wrapper {
        padding: 20px;
        border-radius: 12px;
    }

    .tool-header h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .tool-header h1 .emoji {
        font-size: 28px;
    }

    .tool-header p {
        font-size: 14px;
    }
}

/* Additional utility classes for specific tools */
.tool-section {
    margin-bottom: 30px;
}

.tool-section:last-child {
    margin-bottom: 0;
}

/* Drop zone styling (for file upload tools) */
.drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f7fafc;
    position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.02);
}

.drop-zone-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #667eea;
}

.drop-zone-text {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
}

.drop-zone-subtext {
    font-size: 14px;
    color: #718096;
}

/* File input hidden */
.file-input {
    display: none;
}

/* Buttons */
.tool-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.tool-button:active {
    transform: translateY(0) scale(0.98);
}

.tool-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Secondary button */
.tool-button-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.tool-button-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}
