.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.file-list {
    margin: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.file-list-content {
    max-height: 400px;
    overflow-y: auto;
}

.file-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f1f3f4;
    border-bottom: 1px solid #ddd;
    color: #5f6368;
    font-weight: 500;
    font-size: 13px;
}

.file-header > div {
    padding: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
}

.file-item > div {
    padding: 8px;
}

.file-item:hover {
    background-color: #f5f5f5;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item.selected {
    background-color: #e8f0fe;
}

.file-icon {
    font-size: 1.1em;
    margin-right: 10px;
    width: 30px;
    text-align: center;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.file-size {
    width: 100px;
    text-align: right;
    padding-right: 24px;
    color: #666;
    font-size: 13px;
}

.actions {
    width: 100px;
    text-align: center;
}

#editor-container {
    width: 100%;
    height: 800px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.workspace-editor-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    min-width: 100px;
}

.data-table th:focus,
.data-table td:focus {
    outline: 2px solid #4285f4;
    background-color: #fff;
}

.data-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: relative;
}

.data-table td {
    background-color: #fff;
}

.data-table tr:hover td {
    background-color: #f5f5f5;
}

.file-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #357abd;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.no-files,
.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

input, select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input {
    min-width: 300px;
}

select {
    min-width: 150px;
}

.edit-controls {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.loading, .error, .success, .popup-blocked {
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.loading {
    background-color: #f8f9fa;
    color: #666;
}

.error {
    background-color: #fee;
    color: #c00;
}

.success {
    background-color: #efe;
    color: #0a0;
}

.popup-blocked {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.popup-blocked p {
    margin-bottom: 15px;
}

.popup-blocked .btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

.popup-blocked .btn:hover {
    background-color: #0056b3;
}

#googleSignInBtn {
    background-color: #db4437;
}

.file-header .edit-button {
    padding: 6px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    min-width: 48px;
    font-weight: 500;
}

.file-header .edit-button:hover {
    background: #1557b0;
}

.file-header .edit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.search-section {
    margin: 20px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 0;
}

.search-box button {
    padding: 8px 16px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-buttons button[type="submit"] {
    background: #4285f4;
    color: white;
}

.modal-buttons button[type="button"] {
    background: #f1f3f4;
    color: #5f6368;
}

.file-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #ddd;
}

.search-input {
    flex: 1;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.upload-btn {
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.upload-btn:hover {
    background: #1557b0;
}

.file-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #ddd;
}

.file-select-input {
    flex: 1;
}

.file-select-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #f8f9fa;
}

.upload-btn {
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.upload-btn:hover {
    background: #1557b0;
}

.file-table {
    width: 100%;
}

.file-table-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
    padding: 10px;
    font-weight: bold;
}

.file-table-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px;
}

.column-name {
    flex: 1;
}

.column-size {
    width: 100px;
    text-align: right;
    padding-right: 20px;
}

.column-action {
    width: 100px;
    text-align: center;
}

.edit-button {
    padding: 6px 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.edit-button:hover {
    background: #1557b0;
}

.error-message {
    background-color: #fee;
    color: #c00;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}