.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4169E1, #1E90FF);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Outline Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid;
    box-shadow: none;
}

.btn-outline.btn-primary {
    color: #1E90FF;
    border-color: #1E90FF;
}

.btn-outline.btn-primary:hover {
    background: #1E90FF;
    color: white;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    pointer-events: none;
}

/* Size Variations */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Icon Button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Float Animation */
.btn-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
} 
  /* Responsive Design */
  /* Container Widths */
  @media (min-width: 576px) { .container { max-width: 540px; } }
   @media (min-width: 768px) { .container { max-width: 720px; } }
   @media (min-width: 992px) { .container { max-width: 960px; } }
   @media (min-width: 1200px) { .container { max-width: 1140px; } }
   @media (min-width: 1400px) { .container { max-width: 1320px; } }

   /* Image Responsiveness */
   img {
     max-width: 100%;
     height: auto;
     display: block;
   }

   /* Table Responsiveness */
   .table-responsive {
     overflow-x: auto;
     overscroll-behavior: auto;
   }

   /* Mobile Navigation */
   @media (max-width: 768px) {
     .nav-toggle {
       display: block;
       position: fixed;
       top: 15px;
       right: 15px;
       z-index: 1000;
     }
     
     .main-menu {
       display: none;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100vh;
       background: rgba(255, 255, 255, 0.95);
       padding: 60px 20px;
     }
     
     .main-menu.active {
       display: flex;
       flex-direction: column;
       align-items: center;
     }
   }

   /* Lazy Loading */
   .lazy-image {
     opacity: 0;
     transition: opacity 0.3s ease-in;
   }

   .lazy-image.loaded {
     opacity: 1;
   }

   /* Performance Optimizations */
   @media (prefers-reduced-motion: reduce) {
     * {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
       scroll-behavior: auto !important;
     }
   }

  /* Accessibility */
   :focus {
     outline: 3px solid #2196f3;
     outline-offset: 2px;
   }

   @media (hover: none) {
     .clickable {
       min-height: 44px;
       min-width: 44px;
     }
   }