/* Regal Engineering Portal - Corporate Branding (matching www.regalgaming.co.uk) */

/* Color Palette - Corporate Website */
:root {
    --regal-purple: #2C2E6F;
    --regal-purple-dark: #1F2147;
    --regal-navy: #2C3E7E;
    --regal-navy-dark: #1E2B5A;
    --regal-yellow: #F2C230;
    --regal-yellow-hover: #D4A825;
    --regal-cyan: #3BA3D9;
    --regal-cyan-light: #5CB8E6;
    --regal-light-gray: #F5F5F7;
    --regal-medium-gray: #E8E8EA;
    --regal-text-dark: #2D2D2D;
}

html {
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--regal-light-gray);
  color: var(--regal-text-dark);
}

/* Header & Navigation - Corporate Style */
.navbar {
    background: linear-gradient(135deg, var(--regal-purple) 0%, var(--regal-purple-dark) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 0.8rem 0;
    border-bottom: 3px solid var(--regal-yellow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white !important;
    transition: transform 0.2s ease;
    gap: 12px;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand .logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-brand .brand-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 0.2rem;
}

.nav-link:hover {
    background-color: rgba(242, 194, 48, 0.15);
    color: var(--regal-yellow) !important;
    transform: translateY(-1px);
}

/* Buttons - Corporate Style */
.btn-primary {
    background: var(--regal-purple);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 163, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 163, 217, 0.4);
    background: linear-gradient(135deg, var(--regal-cyan-light) 0%, var(--regal-cyan) 100%);
}

.btn-secondary {
    background-color: var(--regal-navy);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--regal-navy-dark);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--regal-yellow);
    border: none;
    border-radius: 25px;
    color: var(--regal-navy);
    font-weight: 600;
}

.btn-info {
    background-color: var(--regal-cyan);
    border: none;
    border-radius: 25px;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--regal-navy) 0%, var(--regal-navy-dark) 100%);
    color: white !important;
    font-weight: 600;
    border: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5 {
    color: white !important;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Stats Cards */
.card.text-white.bg-primary {
    background: linear-gradient(135deg, var(--regal-cyan) 0%, var(--regal-cyan-light) 100%) !important;
    border: none;
}

.card.text-white.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none;
}

.card.text-white.bg-info {
    background: linear-gradient(135deg, var(--regal-cyan) 0%, var(--regal-cyan-light) 100%) !important;
    border: none;
}

.card.text-white.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, var(--regal-yellow) 100%) !important;
    border: none;
    color: var(--regal-navy) !important;
}

.card.text-white h5 {
    font-weight: 600;
    font-size: 0.9rem;
}

.card.text-white .display-4 {
    font-weight: 700;
}

/* Alerts */
.alert-success {
    background-color: #d4edda;
    border: none;
    border-left: 4px solid #28a745;
    border-radius: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    border: none;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
}

.alert-info {
    background-color: #d1ecf1;
    border: none;
    border-left: 4px solid var(--regal-cyan);
    border-radius: 8px;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--regal-navy) 0%, var(--regal-navy-dark) 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(59, 163, 217, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 163, 217, 0.1);
}

/* Badges */
.badge {
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge.bg-info {
    background-color: var(--regal-cyan) !important;
}

.badge.bg-primary {
    background-color: var(--regal-navy) !important;
}

/* Forms */
.form-control:focus, 
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 163, 217, 0.25);
  border-color: var(--regal-cyan);
}

.form-label {
    font-weight: 600;
    color: var(--regal-navy);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--regal-medium-gray);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--regal-cyan);
}

/* Login Page Styling */
.card.shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Footer */
.footer {
  margin-top: auto;
  width: 100%;
  white-space: nowrap;
  padding: 20px 0;
  background: linear-gradient(135deg, var(--regal-navy) 0%, var(--regal-navy-dark) 100%);
  color: white !important;
  font-size: 0.9rem;
}

.footer a {
    color: var(--regal-yellow) !important;
    text-decoration: none;
}

.footer a:hover {
    color: var(--regal-cyan-light) !important;
    text-decoration: underline;
}

/* Page Headers */
h1, h2, h3, h4, h5 {
    color: var(--regal-navy);
    font-weight: 700;
}

h1 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--regal-cyan);
}

/* Document Categories/Tags Pills */
.category-pill {
    display: inline-block;
    background: linear-gradient(135deg, var(--regal-navy) 0%, var(--regal-navy-dark) 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    margin: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(44, 62, 126, 0.3);
}

.category-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(44, 62, 126, 0.4);
    background: linear-gradient(135deg, var(--regal-navy-dark) 0%, var(--regal-navy) 100%);
}

/* Login card enhancement */
.card-title.text-center {
    color: var(--regal-navy);
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand .logo-img {
        height: 40px;
    }

    .navbar-brand .brand-title {
        font-size: 1.1rem;
    }

    .navbar-brand .brand-subtitle {
        font-size: 0.65rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .alert, h1 {
    animation: fadeInUp 0.5s ease-out;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--regal-cyan);
    outline-offset: 2px;
}

/* Hero Section - Login Page */
.login-hero {
    background: linear-gradient(135deg, #E8E8EA 0%, #D8D8DD 100%);
    padding: 80px 0 60px;
    min-height: 450px;
    display: flex;
    align-items: center;
}

/* Compact Login Hero - Fits on One Page */
.login-hero-compact {
    background: linear-gradient(135deg, #E8E8EA 0%, #D8D8DD 100%);
    padding: 40px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content-compact {
    padding: 20px;
}

.hero-logo-section-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-logo-compact {
    height: 110px;
    width: auto;
    max-width: 160px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: float 3s ease-in-out infinite;
}

.hero-brand-text-compact {
    display: flex;
    flex-direction: column;
}

.hero-brand-title-compact {
    font-size: 2rem;
    font-weight: 700;
    color: var(--regal-purple);
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-brand-subtitle-compact {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    margin-top: 3px;
}

.hero-title-compact {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--regal-purple);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-description-compact {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.5;
}

.login-card-compact {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    border-top: 4px solid var(--regal-yellow);
}

.login-title-compact {
    color: var(--regal-purple);
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-content {
    padding: 40px 20px;
}

.hero-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-brand-text {
    display: flex;
    flex-direction: column;
}

.hero-brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--regal-navy);
    line-height: 1;
    letter-spacing: -0.5px;
}

.hero-brand-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--regal-navy);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-hero-primary {
    background: var(--regal-navy);
    color: white;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--regal-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 126, 0.3);
    color: white;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Login Section */
.login-section {
    padding: 60px 0;
    background: white;
}

.login-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    border-top: 4px solid var(--regal-cyan);
}

.login-title {
    color: var(--regal-navy);
    font-size: 1.75rem;
    font-weight: 700;
}

.login-card .form-label {
    color: var(--regal-navy);
    font-size: 0.95rem;
}

.login-card .form-control {
    border: 2px solid var(--regal-medium-gray);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: var(--regal-cyan);
    box-shadow: 0 0 0 0.2rem rgba(59, 163, 217, 0.15);
}

.login-card .btn-primary {
    background: linear-gradient(135deg, var(--regal-cyan) 0%, var(--regal-cyan-light) 100%);
    border: none;
    border-radius: 25px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 163, 217, 0.4);
}

/* Feature Sections */
.feature-sections {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--regal-cyan) 0%, var(--regal-cyan-light) 100%);
}

.feature-pill {
    background: linear-gradient(135deg, var(--regal-navy) 0%, var(--regal-navy-dark) 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.feature-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive Design for Login Hero */
@media (max-width: 992px) {
    .login-hero {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-brand-title {
        font-size: 2rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .login-hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-brand-title {
        font-size: 1.5rem;
    }

    .hero-logo {
        width: 70px;
        height: 70px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-sections {
        padding: 40px 0;
    }

    .feature-pill {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
}

/* Dashboard Card Hover Effects */
.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 180px;
    border-radius: 12px;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.dashboard-card .card-body {
    padding: 1.75rem 1rem;
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card .display-3 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

@media (max-width: 1199px) {
    .dashboard-card .display-3 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .dashboard-card {
        min-height: 150px;
    }

    .dashboard-card .display-3 {
        font-size: 2.5rem;
    }

    .dashboard-card .card-title {
        font-size: 1rem;
    }
}
