/* 共有ビュー用のスタイル - 改善されたデザイン */

/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

body.share-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
}

.shared-event-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.shared-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #2c3e50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shared-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shared-event-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-instructions {
    background: linear-gradient(145deg, #fff3cd, #fef7e6);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
    animation: pulse-attention 2s infinite;
}

@keyframes pulse-attention {
    0% { box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2); }
    50% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5); }
    100% { box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2); }
}

.instruction-title {
    font-size: 20px;
    font-weight: 700;
    color: #856404;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.instruction-text {
    font-size: 16px;
    line-height: 1.6;
    color: #6c5911;
    margin: 0;
}

.highlight-text {
    color: #dc3545;
    font-weight: 700;
    position: relative;
    padding: 0 4px;
}

/* テーブルスタイルのカスタマイズ */
.settlement-table {
    width: 100%;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.settlement-table th, 
.settlement-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.settlement-table th {
    background: linear-gradient(145deg, #4c6ef5, #3b5bdb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settlement-table tbody tr:last-child td {
    border-bottom: none;
}

.settlement-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 支払い額関連スタイル */
.negative-amount {
    color: #dc3545;
    font-weight: 700;
}

.positive-amount {
    color: #28a745;
    font-weight: 700;
}

.zero-amount {
    color: #6c757d;
    font-style: italic;
}

/* ボタンスタイルを改善 */
.unpaid-button, .paid-button {
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.unpaid-button {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: #ffffff;
}

.unpaid-button:hover {
    background: linear-gradient(145deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.paid-button {
    background: linear-gradient(145deg, #28a745, #218838);
    color: #ffffff;
}

.paid-button:hover {
    background: linear-gradient(145deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* ボタンアイコンの追加 */
.button-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* レスポンシブ対応を強化 */
@media (max-width: 768px) {
    .shared-event-container {
        padding: 10px;
    }
    
    .shared-header {
        padding: 20px 15px;
    }
    
    .shared-header h2 {
        font-size: 24px;
    }
    
    .settlement-table th,
    .settlement-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .instruction-title {
        font-size: 18px;
    }
    
    .instruction-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .shared-header h2 {
        font-size: 20px;
    }
    
    .unpaid-button, .paid-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}