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;
  background-color: #f4f7f9;
  font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
}

/* CamCard Style Card */
.cc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    overflow: hidden;
    height: 100%;
}

.cc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.cc-card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #fdfdfd;
    overflow: hidden;
}

.cc-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.5s ease;
}

.cc-card:hover .cc-card-img {
    transform: scale(1.05);
}

.cc-card-body {
    padding: 1.25rem;
}

.cc-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.cc-card-subtitle {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.cc-info-item {
    font-size: 0.85rem;
    color: #34495e;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.cc-info-item i {
    width: 20px;
    color: #3498db;
    margin-right: 8px;
}

.cc-card-footer {
    background: #fafbfc;
    border-top: 1px solid #edf2f7;
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
}

.cc-btn-action {
    color: #95a5a6;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.cc-btn-action:hover {
    color: #3498db;
}

.cc-btn-delete:hover {
    color: #e74c3c;
}

.cc-search-container {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 2.5rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}