@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Form styling */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  display: none;
  flex-direction: column;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 50;
  list-style: none;  /* remove bullets */
  padding: 0;        /* remove padding */
  margin: 0;         /* remove margin */
}
html {
  scroll-behavior: smooth;
}

/* Highlight selected stars */
input[name="rating"]:checked ~ label {
  color: #10b981; /* emerald-500 */
}

.orders-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, #2563eb, #1e40af); /* blue gradient */
    color: white;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.orders-table tbody tr:nth-child(even) {
    background-color: #f9fafb; /* Tailwind gray-50 */
}
.orders-table tbody tr:hover {
    background-color: #e0f2fe; /* Tailwind sky-100 hover effect */
}

.alert-slide-in {
    animation: slideIn 0.5s forwards;
}

.alert-slide-out {
    animation: slideOut 0.5s forwards;
}

@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Landscape phones only */
@media screen and (max-height: 500px) and (orientation: landscape) {

    body {
        overflow-x: hidden;
        font-size: 13px;
    }

    table {
        font-size: 12px;
    }

    td, th {
        padding: 4px 6px;
        white-space: nowrap;
    }

    input, select, button {
        height: 28px;
        font-size: 12px;
    }

    .totalInput,
    .depositInput,
    .balanceInput {
        width: 72px !important;
    }
}
