/**
 * K2G Remote Support Portal Styles
 * Professional styling for the secure remote support system
 */

:root {
    --k2g-blue: #0072ff;
    --k2g-light-blue: #00c6ff;
    --k2g-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --k2g-dark: #343a40;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-main: 0 8px 32px rgba(0, 114, 255, 0.2);
    --shadow-hover: 0 12px 40px rgba(0, 114, 255, 0.3);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

body, html {
  margin: 0;
  scroll-behavior: smooth;
}

/* Mobile-friendly header adjustments */
.k2g-header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(52, 58, 64, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.75rem 1rem;
    min-height: auto;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.k2g-header:hover {
    background: rgba(52, 58, 64, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.k2g-header img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    opacity: 0.95;
    margin-bottom: 8px;
}

.k2g-header .contact-info {
    font-size: 0.85rem;
    line-height: 1.4;
}

.k2g-header .contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.k2g-header .contact-info a:hover {
    color: var(--k2g-light-blue);
}

.k2g-contact-info {
    margin-top: 10px; 
    font-size: 1rem; 
    line-height: 1.4;
}

/* Logo hover effects */
.k2g-header a:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.k2g-header a {
    transition: all 0.3s ease;
}

.k2g-header a:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: url('../server_room_05102025.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
}

.k2g-hero {
  background: url('../server_room_05102025.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  position: relative;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.k2g-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
    padding-top: 80px;
}

.k2g-hero-content {
  z-index: 2;
  position: relative;
  padding-top: 80px;
}

.k2g-hero-buttons {
  margin: 20px 0;
}

.btn-custom {
    min-width: 150px;
    margin: 5px;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Animation Styles */
.fade-in-header {
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

.fade-in-header:nth-child(2) {
    animation-delay: 0.5s;
}

.fade-in-header:nth-child(3) {
    animation-delay: 1s;
}

.fade-in-header:nth-child(4) {
    animation-delay: 1.5s;
}

.fade-in-header:nth-of-type(2) {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.glow-underline {
    position: relative;
    display: inline-block;
}

.glow-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    box-shadow: 0 0 8px rgba(0, 114, 255, 0.7);
    border-radius: 2px;
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 114, 255, 0.1));
    min-height: 100vh;
    padding: 2rem 0;
}

/* Navigation Buttons */
.nav-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn-primary {
    background: var(--k2g-gradient);
    color: white;
}

.nav-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4);
    color: white;
}

/* Main Container */
.support-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-main);
    padding: 2.5rem;
    margin: 2rem auto 2rem;
    max-width: 800px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.support-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--k2g-gradient);
}

.support-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Header Section */
.support-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.support-header h2 {
    background: var(--k2g-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.support-header .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
}

/* K2G Branding */
.k2g-brand {
    display: inline-block;
    font-weight: 800;
    font-size: 1.1em;
    background: var(--k2g-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.status-pending { background: linear-gradient(45deg, #ffc107, #e0a800); }
.status-approved { background: var(--k2g-gradient); }
.status-downloaded { background: linear-gradient(45deg, #17a2b8, #138496); }
.status-completed { background: linear-gradient(45deg, #28a745, #20c997); }
.status-rejected { background: linear-gradient(45deg, #dc3545, #c82333); }
.status-expired { background: linear-gradient(45deg, #6c757d, #545b62); }

/* K2G Buttons */
.btn-k2g {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-k2g::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-k2g:hover::before {
    left: 100%;
}

.btn-primary-k2g {
    background: var(--k2g-gradient);
    color: white;
}

.btn-primary-k2g:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4);
    color: white;
}

.btn-success-k2g {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-success-k2g:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-danger-k2g {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.btn-danger-k2g:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
    color: white;
}

/* Form Controls */
.form-control-k2g {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.form-control-k2g:focus {
    background: white;
    border-color: var(--k2g-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 255, 0.25);
    transform: translateY(-1px);
}

/* Security Notice */
.security-notice {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 114, 255, 0.1));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 114, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.security-notice::before {
    content: '🛡️';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
}

/* Alert Styles */
.alert-k2g {
    border-radius: 16px;
    border: none;
    padding: 1.5rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success-k2g {
    background: linear-gradient(135deg, rgba(212, 237, 218, 0.9), rgba(195, 230, 203, 0.9));
    color: #155724;
    backdrop-filter: blur(8px);
    border-left: 4px solid #28a745;
}

.alert-danger-k2g {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.9), rgba(245, 198, 203, 0.9));
    color: #721c24;
    backdrop-filter: blur(8px);
    border-left: 4px solid #dc3545;
}

.alert-warning-k2g {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.9), rgba(255, 234, 167, 0.9));
    color: #856404;
    backdrop-filter: blur(8px);
    border-left: 4px solid #ffc107;
}

.alert-info-k2g {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 114, 255, 0.1));
    color: var(--k2g-dark);
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--k2g-blue);
}

/* Loading & Animation Elements */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 114, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--k2g-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Ripple Effect Animation */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Contact Section */
.k2g-contact-section {
  background: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

/* Footer */
.k2g-footer {
    background: var(--k2g-dark);
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    margin-top: 2rem;
}

/* Animation Effects */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-shine {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.logo-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 2s ease-in-out 1;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Services List Styling */
.k2g-services-list li {
  margin-bottom: 0.5rem;
  color: #333;
}

/* Professional loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.k2g-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0072ff;
    border-radius: 50%;
    animation: k2g-spin 1s linear infinite;
}

@keyframes k2g-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.k2g-loading-content {
    text-align: center;
    color: #0072ff;
    font-weight: 500;
}

/* MOBILE RESPONSIVE DESIGN */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .k2g-header {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
        text-align: center;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .k2g-header img {
        max-height: 50px;
        margin: 0 auto;
    }
    
    .k2g-contact-info {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .k2g-contact-info address {
        margin: 0;
    }
    
    /* Hero logo mobile adjustments */
    .hero-logo {
        max-height: 60px !important;
    }
    
    .k2g-hero-content h1 {
        flex-direction: column !important;
        gap: 1rem !important;
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .k2g-hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .k2g-hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .k2g-hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .k2g-hero nav {
        margin-top: 1.5rem !important;
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .k2g-hero nav .btn {
        width: 100%;
        max-width: 200px;
        font-size: 0.9rem;
    }
    
    /* Services section mobile adjustments */
    #services h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    #services .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .k2g-services-list li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Contact section mobile adjustments */
    .k2g-contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .k2g-contact-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Footer mobile adjustments */
    .k2g-footer p {
        font-size: 0.8rem;
        text-align: center;
    }

    .support-container {
        margin: 80px 1rem 2rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .support-header h2 {
        font-size: 1.8rem;
    }

    .nav-buttons {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding-top: 40px;
    }

    .btn-custom {
        min-width: 120px;
        font-size: 0.9rem;
        margin: 10px;
    }
    
    /* Ensure proper spacing and touch targets */
    .btn {
        min-height: 44px; /* Minimum touch target size */
        touch-action: manipulation; /* Improve touch responsiveness */
    }
    
    /* Improve form elements on mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Better spacing for mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-height: 50px !important;
    }
    
    .k2g-header img {
        max-height: 45px;
    }
    
    .k2g-contact-info {
        font-size: 0.8rem;
    }
    
    .k2g-hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .k2g-hero-content .lead {
        font-size: 0.95rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .btn-group-vertical .btn,
    .d-flex .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .support-container {
        padding: 1rem;
    }

    .support-header h2 {
        font-size: 1.5rem;
    }

    .btn-k2g {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Clean Table Header Override - Add this to the END of your k2g-styles.css */

/* Nuclear option - Override ALL possible table header selectors */
table th,
.table th,
.k2g-table th,
.table thead th,
.table-hover thead th,
thead th,
.k2g-card .table thead th,
.k2g-card .k2g-table th,
.container-fluid .k2g-table th,
.container-fluid .table thead th,
.container-fluid .table-hover thead th,
.k2g-card .table.table-hover.k2g-table thead tr th,
.container-fluid .k2g-card .table thead th,
.container-fluid .k2g-card .k2g-table th {
    background: #495057 !important;
    background-image: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    background-attachment: unset !important;
    background-blend-mode: unset !important;
    background-color: #495057 !important;
    background-origin: unset !important;
    background-position: unset !important;
    background-repeat: unset !important;
    background-size: unset !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 15px !important;
    border: none !important;
    text-align: left !important;
    font-size: 14px !important;
    /* Override any CSS variables */
    --k2g-gradient: none !important;
}

/* Target your specific gradient variable if it exists */
.k2g-table th {
    background: #495057 !important;
    background: var(--k2g-dark, #495057) !important;
}

/* Override any pseudo-elements that might have gradients */
.k2g-table th::before,
.k2g-table th::after,
.table thead th::before,
.table thead th::after {
    display: none !important;
}