/* ============================================
   GSMPROXY THEME - Central Style Configuration
   ============================================ */

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-dark: #333;
  --text-light: #999;
  --border-light: #e0e0e0;
  --bg-light: #f8f9fa;
  --bg-lighter: #fffbf0;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

#main {
  flex: 1;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar-custom {
  background: var(--gradient-primary);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-custom .navbar-brand {
  font-size: 24px;
  font-weight: 700;
  color: white !important;
  letter-spacing: 0.5px;
}

.navbar-custom .navbar-brand:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 5px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-custom .nav-link:hover {
  color: white !important;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
  width: 100%;
}

.navbar-custom .dropdown-menu {
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-custom .dropdown-item {
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-custom .dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-primary {
  background: var(--primary-color);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-control {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  color: var(--text-dark);
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 14px;
}

/* ============================================
   CARD STYLES
   ============================================ */

.card {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
  transform: translateY(-5px);
}

.card-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px 10px 0 0 !important;
  font-weight: 600;
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 15px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.badge-primary {
  background: var(--primary-color);
  color: white;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

.badge-danger {
  background: var(--danger-color);
  color: white;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 30px;
}

/* ============================================
   GRID STYLES
   ============================================ */

.grid-standard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-light {
  color: var(--text-light) !important;
}

.bg-light-primary {
  background: rgba(102, 126, 234, 0.1);
}

.bg-light-secondary {
  background: rgba(118, 75, 162, 0.1);
}

.border-primary {
  border: 2px solid var(--primary-color) !important;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: var(--gradient-primary);
}

.shadow-sm-primary {
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.shadow-md-primary {
  box-shadow: 0 5px 25px rgba(102, 126, 234, 0.3);
}

.transition-smooth {
  transition: all 0.3s ease;
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 992px) {
  .navbar-custom .nav-link {
    margin: 10px 0;
  }

  .navbar-custom .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-standard {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .section-title {
    font-size: 22px;
  }
}

/* ============================================
   ANIMATION STYLES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer-custom {
  background: var(--gradient-primary);
  color: white;
  padding: 50px 0 20px;
  margin-top: 80px;
  border-top: none;
}

.footer-custom .footer-section {
  margin-bottom: 30px;
}

.footer-custom .footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-custom .footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-custom .footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.footer-custom .footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

.footer-custom .footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-custom .footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-custom .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-custom .social-icon:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar-custom,
  .footer-custom,
  .no-print {
    display: none;
  }
}
