﻿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;
}

.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;
}

/* 會員導覽區域樣式 */
.member-dropdown {
    min-width: 250px;
}

.member-dropdown .dropdown-header {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    background-color: #f8f9fa;
    border-radius: 0.375rem 0.375rem 0 0;
}

.member-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.member-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.member-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.member-dropdown .text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.navbar-nav .nav-link.text-success {
    font-weight: 600 !important;
}

/* 會員下拉選單動畫效果 */
.dropdown-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登入/登出按鈕樣式 */
.member-auth-btn {
    border: none;
    background: none;
    color: inherit;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.member-auth-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 會員狀態指示器 */
.member-status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* 小屏幕優化 */
@media (max-width: 767.98px) {
    .member-dropdown {
        min-width: 200px;
    }
    
    .navbar-nav .nav-link span {
        display: inline !important;
    }
}