body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    text-align: center;
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 95%;
    max-width: 900px;
    transition: transform 0.3s ease;
}

.logo-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.app-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

h1 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

#auth-container, #upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

#upload-container > div {
    width: 100%;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a4a4a;
    font-size: 0.85rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4285f4;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

#drop-zone {
    width: 100%;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

#drop-zone p {
    margin: 0;
    color: #666;
    pointer-events: none; /* テキスト上でのドロップイベントの干渉を防ぐ */
}

#drop-zone:hover, #drop-zone.dragover {
    background-color: #e8f0fe;
    border-color: #4285f4;
    color: #4285f4;
}

#drop-zone.dragover p {
    color: #4285f4;
}

#drop-zone.disabled {
    background-color: #eee;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
}

#drop-zone.disabled:hover {
    background-color: #eee;
    border-color: #ccc;
    color: #999;
}

button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 160px;
    box-shadow: 0 4px 6px rgba(66, 133, 244, 0.2);
    margin-top: 0.5rem;
}

button:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 133, 244, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: none;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

#progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-top: 1.5rem;
    height: 10px;
    overflow: hidden;
    display: none; /* JSで制御するが、初期値として */
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4285f4;
    transition: width 0.2s ease;
}

#status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    min-height: 1.5em;
    font-weight: 500;
}

.error-message {
    color: #d93025 !important;
}

#result {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

#launchButton {
    background: linear-gradient(135deg, #34a853 0%, #2e8b46 100%);
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.3);
}

#launchButton:hover {
    background: linear-gradient(135deg, #3bc161 0%, #34a853 100%);
    box-shadow: 0 6px 15px rgba(52, 168, 83, 0.4);
}

#file-list-container {
    width: 100%;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.file-item {
    position: relative;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    background-color: #e8f5e9; /* 薄い緑 */
}

.file-item-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    word-break: break-all;
    font-size: 0.9rem;
}

.file-item label {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

.file-name-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    background-color: #ffffff; /* 白い背景で強調 */
}

#uploadAllButton {
    background-color: #4285f4 !important;
    margin: 1rem auto 0 auto;
    display: block;
}

#uploadAllButton:hover {
    background-color: #3367d6 !important;
}

.remove-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none !important;
    color: #999;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    box-shadow: none !important;
    min-width: auto;
}
.remove-button:hover {
    color: #d93025 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.url-container {
    display: none;
    margin-top: 0.5rem;
    padding: 8px;
    background-color: #e8f0fe;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
    text-align: left;
}
.url-text {
    color: #1a73e8;
    margin-bottom: 5px;
    display: block;
}
.copy-button {
    background: none !important;
    border: 1px solid #1a73e8 !important;
    color: #1a73e8 !important;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    min-width: auto;
    box-shadow: none !important;
    display: inline-block;
}
.copy-button:hover {
    background-color: #1a73e8 !important;
    color: white !important;
    box-shadow: none !important;
    transform: none !important;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-top: 0.5rem;
    height: 8px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4285f4;
    transition: width 0.2s ease;
}

.status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    min-height: 1.2em;
}

.launch-button {
    background: linear-gradient(135deg, #34a853 0%, #2e8b46 100%);
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.3);
    margin-top: 0.5rem;
    width: 100%;
    display: none;
}

.launch-button:hover {
    background: linear-gradient(135deg, #3bc161 0%, #34a853 100%);
    box-shadow: 0 6px 15px rgba(52, 168, 83, 0.4);
}

.launch-button.launched {
    background: linear-gradient(135deg, #2b6a38 0%, #1f4f29 100%);
    box-shadow: 0 2px 5px rgba(43, 106, 56, 0.3);
    opacity: 0.9;
}

.launch-button.launched:hover {
    background: linear-gradient(135deg, #327a41 0%, #2b6a38 100%);
    box-shadow: 0 4px 8px rgba(43, 106, 56, 0.4);
}
