/* ============================================================
   🌙 PROFESSIONAL DARK THEME (FINAL UPDATED VERSION)
   Clean • Responsive • Fast • Aesthetic
============================================================ */

/* === Root Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Base Body === */
body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* === Main Container === */
.rm-container {
    width: 90%;
    max-width: 1400px;
    min-width: 1024px;
    margin: 4vh auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vh, 3rem);
    padding: 0 clamp(1rem, 2vw, 2rem);
}

/* === Professional Card === */
.rm-card {
    background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
    border-radius: 16px;
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px solid #2a2a2a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
}

.rm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F90618, #2E3192);
    transition: background 0.4s ease;
}

.rm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.rm-card:hover::before {
    background: linear-gradient(90deg, #2E3192, #F90618);
}

/* === Typography === */
.rm-title {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.rm-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(60px, 8vw, 80px);
    height: 4px;
    background: linear-gradient(90deg, #F90618, #2E3192);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.rm-card:hover .rm-title::after {
    width: clamp(80px, 12vw, 100px);
}

.rm-subtitle {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.rm-text {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

/* === Button Group === */
.rm-button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    margin-top: 3rem;
    margin-bottom: 8vh;
}

/* === Base Button === */
.rm-button {
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: clamp(0.75rem, 1vw, 0.9rem) clamp(1.4rem, 2vw, 1.8rem);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    min-width: clamp(130px, 15vw, 180px);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rm-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.rm-button:hover::before {
    left: 100%;
}

/* === Feedback Button (Blue) === */
.new-feedback-btn {
    background: linear-gradient(135deg, #2E3192, #25287a);
}

.new-feedback-btn:hover {
    background: linear-gradient(135deg, #25287a, #1e2166);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(46, 49, 146, 0.45);
}

/* Icon inside feedback button */
.feedback-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.new-feedback-btn:hover .feedback-icon {
    transform: scale(1.08);
}

/* === Display Monitor Button (Blue) === */
.rm-openpage-btn {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    text-decoration: none;
    display: inline-block;
}

.rm-openpage-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.45);
    text-decoration: none;
}

/* === Visit MedTechKits Button (Green) === */
.rm-visit-btn {
    background: linear-gradient(135deg, #16a34a, #15803d);
    text-decoration: none !important;
    display: inline-block;
    color: #ffffff !important;
}

.rm-visit-btn:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.45);
    text-decoration: none !important;
    color: #ffffff !important;
}

/* === Focus / Active / Disabled === */
.rm-button:focus {
    outline: 2px solid #2E3192;
    outline-offset: 3px;
    transform: translateY(-2px);
}

.rm-button:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.rm-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

/* ============================================================
   🌐 RESPONSIVE BREAKPOINTS
============================================================ */
@media (min-width: 2561px) {
    .rm-container {
        max-width: 2000px;
        margin: 6vh auto;
    }

    .rm-card {
        padding: 4rem;
    }

    .rm-button-group {
        gap: 3rem;
        margin-bottom: 10vh;
    }
}

@media (min-width: 1921px) and (max-width: 2560px) {
    .rm-container {
        max-width: 1800px;
        margin: 5vh auto;
    }

    .rm-card {
        padding: 3.5rem;
    }

    .rm-button-group {
        gap: 2.5rem;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .rm-container {
        max-width: 1400px;
        margin: 4vh auto;
    }

    .rm-card {
        padding: 3rem;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .rm-container {
        width: 92%;
        min-width: 900px;
        max-width: 1200px;
        margin: 3vh auto;
    }

    .rm-card {
        padding: 2.5rem;
    }

    .rm-button-group {
        gap: 2rem;
        margin-bottom: 6vh;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .rm-container {
        width: 95%;
        min-width: 700px;
        max-width: 900px;
        margin: 3vh auto;
        gap: 2rem;
    }

    .rm-card {
        padding: 2rem;
        border-radius: 14px;
    }

    .rm-button-group {
        gap: 1.5rem;
        margin-bottom: 5vh;
    }

    .rm-button {
        min-width: 140px;
        padding: 0.8rem 1.5rem;
    }
}

/* ============================================================
   🖨 PRINT OPTIMIZATION
============================================================ */
@media print {

    body,
    .rm-container,
    .rm-card {
        background: #fff !important;
        color: #000 !important;
    }

    .rm-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    .rm-card::before {
        background: #333 !important;
    }

    .rm-button {
        background: #333 !important;
        color: #fff !important;
        box-shadow: none !important;
    }
}

/* === High DPI Optimization === */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .rm-card {
        border-width: 0.5px;
    }
}

/* === Smooth Scroll === */
html {
    scroll-behavior: smooth;
}

/* === Reduced Motion for Accessibility === */
@media (prefers-reduced-motion: reduce) {

    .rm-card,
    .rm-button,
    .rm-card::before,
    .rm-button::before {
        transition: none !important;
        animation: none !important;
    }

    .rm-card:hover,
    .rm-button:hover {
        transform: none !important;
    }
}