/**
 * BismillahCSS Modern Components
 * Component-specific styles
 */

/* Modern Card Styles */
.bismillah-card-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  }
  
  .bismillah-card-modern {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .bismillah-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  /* Modern Button Styles */
  .bismillah-btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .bismillah-btn-modern::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
  }
  
  .bismillah-btn-modern:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .bismillah-btn-outline-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: transparent;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid currentColor;
  }
  
  .bismillah-btn-outline-modern:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  /* Modern Form Elements */
  .bismillah-input-modern {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  }
  
  .bismillah-input-modern:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
  }
  
  .bismillah-input-modern::placeholder {
    color: rgba(0, 0, 0, 0.3);
  }
  
  .bismillah-select-modern {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
  }
  
  /* Modern Badges */
  .bismillah-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }
  
  .bismillah-badge-soft-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: rgba(59, 130, 246, 1);
  }
  
  .bismillah-badge-soft-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: rgba(16, 185, 129, 1);
  }
  
  .bismillah-badge-soft-red {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 1);
  }
  
  .bismillah-badge-soft-yellow {
    background-color: rgba(245, 158, 11, 0.1);
    color: rgba(245, 158, 11, 1);
  }
  
  /* Modern Tooltip */
  .bismillah-tooltip {
    position: relative;
    display: inline-block;
  }
  
  .bismillah-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
  }
  
  .bismillah-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
  }
  
  /* Modern Switch */
  .bismillah-switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
  }
  
  .bismillah-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .bismillah-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  
  .bismillah-switch-slider:before {
    position: absolute;
    content: "";
    height: 1.1rem;
    width: 1.1rem;
    left: 0.2rem;
    bottom: 0.2rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  .bismillah-switch input:checked + .bismillah-switch-slider {
    background-color: #6366f1;
  }
  
  .bismillah-switch input:checked + .bismillah-switch-slider:before {
    transform: translateX(1.5rem);
  }
  
  /* Modern Avatar Group */
  .bismillah-avatar-group {
    display: flex;
  }
  
  .bismillah-avatar-group > * {
    margin-left: -0.75rem;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .bismillah-avatar-group > *:first-child {
    margin-left: 0;
  }
  
  /* Modern Notification Badge */
  .bismillah-notification-badge {
    position: relative;
    display: inline-flex;
  }
  
  .bismillah-notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
  }
  