/* Custom styles goes here */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Grid Editor Styles */
.grid-editor-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.grid-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.grid-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.grid-container {
    display: grid;
    gap: 2px;
    margin: 20px auto;
    justify-content: center;
    background-color: #f0f0f00a;
    padding: 10px;
    border-radius: 5px;
}


.grid-cell {
    width: 60px;
    height: 60px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.grid-cell:hover {
    background-color: #e6e6e6;
}

.grid-cell.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.grid-cell.merged {
    background-color: #28a745;
    color: white;
    border-color: #1e7e34;
}

.grid-cell.merged:hover {
    background-color: #218838;
}

/* Card Styles */
.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toastr Customization */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
