/* ===== Card ===== */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.empty-box {
    padding: 28px;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    background: #f9fafb;
    text-align: center;
    color: #6b7280;
}

.empty-box p {
    margin: 0;
}

/* ===== Buttons ===== */
button,
.btn-primary,
.btn-secondary,
.btn-link,
.btn-danger,
.btn-small,
.copy-btn {
    appearance: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary,
.btn-secondary,
.btn-link,
.btn-danger,
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-primary {
    background: #111827;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1f2937;
    text-decoration: none;
}

.btn-secondary {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.btn-secondary:hover {
    background: #e0e7ff;
    text-decoration: none;
}

.btn-link {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.btn-link:hover {
    background: #dbeafe;
    text-decoration: none;
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
    text-decoration: none;
}

.copy-btn {
    white-space: nowrap;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.copy-btn:hover {
    background: #e5e7eb;
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-link:disabled,
.btn-danger:disabled,
.btn-small:disabled,
.copy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Status Badge ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
}

.status-badge.status-open {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.status-close {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Form ===== */
.form-card {
    max-width: 720px;
}

.form-group + .form-group {
    margin-top: 18px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #ffffff;
    color: #111827;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-actions {
    margin-top: 20px;
}

/* ===== Alert ===== */
.form-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.form-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.form-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

/* ===== Modal ===== */
.modal-open {
    overflow: hidden;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.modal-close-btn {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    min-height: auto;
}

.modal-body {
    padding: 20px;
}

.modal-description {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

/* ===== Small Utility ===== */
.page-actions {
    margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary,
    .btn-link,
    .btn-danger,
    .copy-btn {
        width: 100%;
    }

    .modal-card {
        max-width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }
}


/* ヘッダーユーザー表示 */
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
}

.header-user{
    display:flex;
    align-items:center;
    gap:8px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login{
    padding:6px 12px;
    border-radius:8px;
    background:#111827;
    color:#fff;
    text-decoration:none;
}