/* 共通スタイル（各レイアウトで共有される最低限の定義） */
/* 変数・ユーティリティ・共通コンポーネントのみを記述すること */

/* カラーバリアント（全レイアウト共通） */
:root {
    --primary-color: #F564BC;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #495057;
}

/* 共通ボタン（Bootstrapのトークンを上書き） */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #e04fa8;
    border-color: #e04fa8;
    color: #fff;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #4e555b;
    color: #fff;
}

/* 共通アラート基礎（各レイアウトが拡張） */
.alert {
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

/* 認証ロゴのスタイル */
.auth-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ロゴの色分けスタイル（修理業者向けプラットフォーム） */
.logo-repair { color: #FF66CC; }
.logo-base { color: #99CC33; }

/* ファイルアップロード関連のスタイル（全レイアウト共通） */
.file-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .file-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.current-file {
    margin-bottom: 1rem;
}

.file-preview-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.current-file-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.current-file-image:hover {
    border-color: #007bff;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.placeholder-image {
    width: 300px;
    height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #6c757d;
}

.placeholder-image:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
    color: #007bff;
    transform: scale(1.02);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.placeholder-image span {
    font-size: 1rem;
    font-weight: 500;
}

.placeholder-file {
    width: 300px;
    height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #6c757d;
}

.placeholder-file:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
    color: #007bff;
    transform: scale(1.02);
}

.placeholder-file i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.placeholder-file span {
    font-size: 1rem;
    font-weight: 500;
}

.file-preview {
    margin-top: 1rem;
}

.file-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #e9ecef;
    border-color: #adb5bd !important;
}

.file-item .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* ファイルアクションボタンのスタイル */
.file-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.file-actions .btn {
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.file-actions .btn i {
    font-size: 1rem;
}

/* 認証モーダル用スタイル */
.auth-container {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-subtitle {
    color: #666;
    font-size: 0.9rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    background-color: #b7cf29;
    border-color: #b7cf29;
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-auth:hover {
    background-color: #a0b825;
    border-color: #a0b825;
}

.btn-auth:focus {
    box-shadow: 0 0 0 0.2rem rgba(183, 207, 41, 0.5);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.auth-footer p {
    color: #6c757d;
    font-size: 0.8rem;
    margin: 0;
}

.dev-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.dev-notice code {
    background-color: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.auth-step {
    margin-bottom: 2rem;
}

.auth-step h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.text-center {
    text-align: center;
}

.alert {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.375rem !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease-in-out !important;
}

.alert.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}
