/* Maroon Futuristic Animated Theme for Diploma Verification System */

:root {
  --primary: #800000; /* Maroon */
  --primary-dark: #600000;
  --primary-light: #a00000;
  --secondary: #212529;
  --accent: #ffc107;
  --light: #f8f9fa;
  --dark: #343a40;
  --border-radius: 0.25rem;
  --card-radius: 15px;
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(128, 0, 0, 0.2); }
  50% { box-shadow: 0 0 20px rgba(128, 0, 0, 0.4); }
  100% { box-shadow: 0 0 5px rgba(128, 0, 0, 0.2); }
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Login page specific animations */
@keyframes floatParticle {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -10px) rotate(5deg); }
  50% { transform: translate(0, -20px) rotate(0deg); }
  75% { transform: translate(-10px, -10px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Animated Elements */
.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
  animation-delay: calc(var(--delay, 0s));
  opacity: 0;
}

.slide-in-left {
  animation: slideInLeft 0.5s ease-in-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-in-out forwards;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-in-out forwards;
  animation-delay: calc(var(--delay, 0s));
  opacity: 0;
}

.pulse {
  animation: pulse 1.5s infinite;
}

.glow {
  animation: glow 2s infinite;
}

/* Custom Navbar */
.navbar-maroon {
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-maroon .navbar-brand,
.navbar-maroon .navbar-nav .nav-link {
  color: white;
  transition: var(--transition);
}

.navbar-maroon .navbar-nav .nav-link:hover,
.navbar-maroon .navbar-nav .nav-link:focus {
  color: var(--accent);
}

.navbar-maroon .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

/* Custom Sidebar */
.sidebar {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  height: calc(100vh - 56px);
  transition: var(--transition);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 56px;
  left: 0;
  width: 250px;
  z-index: 1000;
  padding-top: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.sidebar-heading {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.05rem;
  pointer-events: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar .nav-link {
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  border-left: 4px solid transparent;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  color: white;
  background-color: rgba(255,255,255,0.1);
  border-left: 4px solid var(--accent);
}

.sidebar .nav-link.active {
  color: white;
  background-color: rgba(255,255,255,0.15);
  border-left: 4px solid var(--accent);
  font-weight: 500;
}

.sidebar .nav-link i {
  margin-right: 0.75rem;
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar .nav-item {
  margin-bottom: 0.25rem;
}

/* Main Content Area */
.main-content {
  margin-left: 250px;
  padding-top: 56px;
  min-height: 100vh;
  transition: var(--transition);
}

@media (max-width: 991.98px) {
  .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar.show {
    width: 250px;
    padding-top: 1rem;
  }
  
  .main-content.shifted {
    margin-left: 250px;
  }
}

/* Custom Cards */
.card {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
  padding: 1rem 1.25rem;
}

/* Settings Page Styles */
.card-header.bg-maroon {
  background-color: var(--primary);
  color: white;
}

.nav-tabs.card-header-tabs .nav-link {
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-tabs.card-header-tabs .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs.card-header-tabs .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-bottom: 3px solid var(--accent);
}

.form-label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-text {
  font-size: 0.8rem;
}

.img-thumbnail {
  border-radius: 10px;
  padding: 0.5rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.img-thumbnail:hover {
  transform: scale(1.02);
}

.section-heading {
  position: relative;
  font-weight: 600;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
}

.btn-maroon {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(128, 0, 0, 0.15);
}

.btn-maroon:hover,
.btn-maroon:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn-outline-maroon {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-maroon:hover,
.btn-outline-maroon:focus {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-danger {
  transition: var(--transition);
}

.btn-outline-danger:hover {
  transform: translateY(-1px);
}

.form-control {
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.15);
  border-color: rgba(128, 0, 0, 0.2);
}

.qr-container {
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-md);
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}

.qr-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.verification-container {
  max-width: 800px;
  margin: 0 auto;
}

.access-key-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

/* Enhanced Landing Page Styles */

.hero-section {
  padding: 7rem 0 5rem;
  position: relative;
  background-color: var(--primary);
  color: white;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 15s infinite;
}

.feature-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  color: #fff;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.qr-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.qr-card:hover {
  transform: translateY(-5px);
}

.step-item {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-section {
  background: #f9f9f9;
  padding: 100px 0;
  position: relative;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.info-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.info-card:hover::after {
  transform: scaleX(1);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.1);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

/* Enhanced Footer Styles */
.footer-section {
    background-color: #800000 !important;
    color: #fff !important;
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.15) 25%, transparent 25%, 
                                     transparent 50%, rgba(255,255,255,0.15) 50%, 
                                     rgba(255,255,255,0.15) 75%, transparent 75%);
    background-size: 20px 20px;
    animation: move-pattern 20s linear infinite;
}

@keyframes move-pattern {
    0% { background-position: 0 0; }
    100% { background-position: 50px 0; }
}

.footer-bottom-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

.footer-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: white !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
    animation: expand-line 1s ease-out forwards;
}

@keyframes expand-line {
    0% { width: 0; }
    100% { width: 50px; }
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fff !important;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: var(--dark) !important;
    transform: translateY(-3px);
}

.social-icon:hover::before {
    transform: scale(1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent);
}

.contact-icon i {
    color: var(--accent);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: var(--dark);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links-secondary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.footer-links-secondary a {
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    font-size: 0.9rem;
    color: white !important;
}

.footer-links-secondary a:hover {
    color: var(--accent) !important;
    opacity: 1;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 767.98px) {
    .footer-links-secondary {
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .footer-title {
        margin-bottom: 15px;
    }
    
    .footer-bottom {
        margin-top: 40px;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .qr-card {
    margin-top: 2rem;
  }
  
  .info-section {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .step-item {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 0.5rem;
  }
} 

/* Additional animations for the enhanced landing page */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(var(--delay, 0s));
  opacity: 0;
}

.fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
  animation-delay: calc(var(--delay, 0s));
  opacity: 0;
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
  animation-delay: calc(var(--delay, 0s));
  opacity: 0;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
  animation-delay: calc(var(--delay, 0s));
  opacity: 0;
}

/* Animated stat numbers */
.stat-number {
  position: relative;
  display: inline-block;
}

.stat-number.animated {
  animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced button styles */
.btn {
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* Enhanced card styles */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Enhanced section styles */
.section-divider {
  position: relative;
  height: 100px;
  margin-top: -50px;
  margin-bottom: -50px;
  z-index: 10;
}

.section-divider svg {
  position: absolute;
  width: 100%;
  height: 100px;
  fill: #fff;
}

/* Enhanced form styles */
.form-control {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(128,0,0,0.15);
  border-color: rgba(128,0,0,0.3);
}

/* Enhanced alert styles */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.alert-info {
  background-color: rgba(0,123,255,0.1);
  color: #0056b3;
}

.alert-info i {
  color: #0056b3;
} 