body {
    margin: 0;
    font-family: Arial, "Noto Sans TC", sans-serif;
    background: #f7f1ea;
    color: #3a2a1f;
}

a {
    color: #7a4d2a;
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    margin: 18px 0;
    box-shadow: 0 10px 28px rgba(75, 45, 20, .10);
}

.hero {
    text-align: center;
    padding: 42px 24px;
}

.btn {
    display: inline-block;
    background: #7b4f2c;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.btn.light {
    background: #efe6dc;
    color: #5a3922;
}

.btn.danger {
    background: #b84343;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    margin: 6px 0 14px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 統計卡片之間保留明顯間距，避免手機版上下卡片黏在一起 */
    gap: 22px;
}

.stat {
    background: #fff7ef;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
}

.stat .num {
    font-size: 34px;
    font-weight: 800;
    color: #7b4f2c;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 13px;
}

.ok {
    background: #e5f7e9;
    color: #17743a;
}

.warn {
    background: #fff3d7;
    color: #8c5a00;
}

.bad {
    background: #ffe3e3;
    color: #a12626;
}

.copybox {
    white-space: pre-wrap;
    background: #f4f0eb;
    border: 1px dashed #b49273;
    border-radius: 16px;
    padding: 16px;
}

iframe {
    width: 100%;
    height: 68vh;
    border: 0;
    border-radius: 20px;
    background: #000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.small {
    color: #816b5a;
    font-size: 14px;
}

@media(max-width: 760px) {
    .grid,
    .stats {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    iframe {
        height: 50vh;
    }
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.room-card {
    background: #fff7ef;
    border: 1px solid #f0dfcf;
    border-radius: 18px;
    padding: 18px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.room-actions {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
}

.room-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    text-align: center;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.room-title {
    font-size: 24px;
    font-weight: 800;
    color: #7b4f2c;
}

.room-status {
    margin-top: 12px;
    line-height: 1.8;
}

.checkout {
    font-size: 13px;
    color: #777;
}

.empty-text {
    margin-top: 10px;
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.badge.empty {
    background: #eee;
    color: #666;
}

.room-note {
    margin-top: 12px;
    padding: 12px;
    background: #fffaf5;
    border: 1px dashed #ead3b4;
    border-radius: 10px;
}

@media (max-width: 768px){

  .container{
    padding:16px;
  }

  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .stats{
    grid-template-columns:1fr 1fr;
  }

  .room-grid{
    grid-template-columns:1fr;
  }

  .room-card{
    min-height:auto;
  }

  .grid{
    grid-template-columns:1fr;
  }

  table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }

  .btn{
    width:100%;
    text-align:center;
    box-sizing:border-box;
  }

  iframe{
    height:360px;
  }

}
@media (max-width: 480px){

  .stats{
    grid-template-columns:1fr;
  }

  h1{
    font-size:28px;
  }

  .card{
    padding:18px;
    border-radius:18px;
  }

  iframe{
    height:260px;
  }

}
/* BunnyHotel RWD */

@media (max-width:1200px){
  .room-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:768px){
  .container{
    padding:16px;
  }

  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .stats{
    grid-template-columns:1fr 1fr;
  }

  .room-grid{
    grid-template-columns:1fr;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .room-card{
    min-height:auto;
  }

  table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
  }

  .btn{
    width:100%;
    box-sizing:border-box;
    text-align:center;
  }

  iframe{
    height:360px;
  }
}

@media (max-width:480px){
  .stats{
    grid-template-columns:1fr;
  }

  h1{
    font-size:28px;
  }

  .card{
    padding:18px;
    border-radius:18px;
  }

  .room-title{
    font-size:22px;
  }

  iframe{
    height:260px;
  }
}

/* Dashboard 今日概況：手機版上下統計區塊分開一些 */
@media (max-width: 480px){
  .stats{
    gap: 18px;
  }

  .stat{
    padding: 22px 16px;
    margin: 0;
  }
}

/* Dashboard 手機版：今日概況上下統計卡片保持清楚距離 */
@media (max-width: 480px){
  .stats{
    gap: 22px;
  }

  .stat{
    padding: 24px 16px;
  }
}
