/**
 * style.css
 * 出欠党幹事長 共通スタイルシート
 * フィードバック機能関連のスタイル定義
 */

/* フィードバックボタン（右上固定） */
#btnFeedback {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 1000;
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.1s;
}

#btnFeedback:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

#btnFeedback:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* フィードバックダイアログ */
#dlgFeedback {
    position: fixed;
    top: 8px;
    right: 8px;
    max-width: 340px;
    width: calc(100% - 20px);
    background-color: rgba(240, 240, 240, 0.95);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    font-size: 14px;
    display: none; /* 初期状態は非表示 */
    cursor: default; /* ダイアログ内はデフォルトカーソル */
}

/* フィードバックダイアログの閉じるボタン */
#btnFeedbackClose {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

#btnFeedbackClose:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* フィードバック本文 */
.feedback-content {
    margin-top: 20px;
}

.feedback-content > div {
    line-height: 1.5;
    margin-bottom: 12px;
    color: #333;
}

.feedback-content a {
    color: #4CAF50;
    text-decoration: underline;
}

.feedback-content a:hover {
    color: #45a049;
}

/* フィードバックテキストエリア */
#feedbackbody {
    width: 100%;
    height: 100px;
    margin: 12px 0;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

#feedbackbody:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* フィードバック送信ボタン */
#btnSendFeedback {
    background-color: #4CAF50;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-right: 8px;
    transition: background-color 0.3s;
}

#btnSendFeedback:hover {
    background-color: #45a049;
}

#btnSendFeedback:active {
    transform: translateY(1px);
}

/* 文字数制限表示 */
.feedback-limit {
    font-size: 12px;
    color: #666;
    display: inline-block;
    margin-left: 8px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
    #btnFeedback {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    #dlgFeedback {
        top: 50px;
        right: 5px;
        left: 5px;
        width: calc(100% - 10px);
        max-width: none;
    }
    
    #feedbackbody {
        height: 80px;
    }
}

/* アニメーション */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#dlgFeedback.show {
    animation: slideIn 0.3s ease-out;
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    #dlgFeedback {
        background-color: rgba(40, 40, 40, 0.95);
        color: #e0e0e0;
    }
    
    .feedback-content > div {
        color: #e0e0e0;
    }
    
    #feedbackbody {
        background-color: #333;
        color: #e0e0e0;
        border-color: #555;
    }
    
    #btnFeedbackClose {
        color: #aaa;
    }
    
    #btnFeedbackClose:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
    }
}