﻿body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1, h2 {
    color: #333;
    text-align: center;
}

/* Oda Seçim Ekranı */
.room-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.room-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.room-options {
    margin: 20px 0;
}

.room-option {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

    .room-option label {
        font-weight: bold;
        margin-left: 5px;
    }

.option-content {
    margin-top: 10px;
    margin-left: 25px;
}

#room-id-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.primary-button {
    background-color: #6200ee;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 20px;
}

    .primary-button:hover {
        background-color: #3700b3;
    }

.hidden {
    display: none;
}

/* Başlık ve Oda bilgisi */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    header h1 {
        margin: 0;
        flex-grow: 1;
        text-align: center;
    }

.room-info {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    margin-left: 20px;
}

    .room-info span {
        margin-right: 15px;
    }

#change-room-button {
    background-color: #6200ee;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .room-info {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
}

.tab {
    padding: 10px 15px;
    background-color: #eee;
    cursor: pointer;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-right: 5px;
    transition: background-color 0.3s;
}

    .tab.active {
        background-color: #007bff;
        color: white;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}

#drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

    #drop-area:hover, #drop-area.dragover {
        border-color: #007bff;
    }

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #0056b3;
    }

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#shares-container {
    min-height: 400px;
}

.share-list {
    margin-top: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.share-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    position: relative;
}

    .share-item .title {
        font-weight: bold;
        margin-bottom: 5px;
        word-break: break-all;
    }

    .share-item .timestamp {
        font-size: 12px;
        color: #666;
        margin-bottom: 10px;
    }

    .share-item .content {
        background-color: #fff;
        padding: 10px;
        border-radius: 4px;
        border: 1px solid #eee;
        margin-top: 10px;
        white-space: pre-wrap;
        word-break: break-word;
        max-height: 150px;
        overflow-y: auto;
    }

.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.download-btn {
    background-color: #4caf50;
}

    .download-btn:hover {
        background-color: #388e3c;
    }

.copy-btn {
    background-color: #ff9800;
}

    .copy-btn:hover {
        background-color: #f57c00;
    }

.delete-btn {
    background-color: #f44336;
}

    .delete-btn:hover {
        background-color: #d32f2f;
    }

.share-badge {
    display: inline-block;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-left: 5px;
}

.text-badge {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.file-badge {
    background-color: #e8f5e9;
    color: #1b5e20;
}

#file-list {
    margin-top: 10px;
}

.file-item {
    margin-bottom: 5px;
}

.refresh-btn {
    float: right;
    background-color: #673ab7;
    margin-bottom: 10px;
}

    .refresh-btn:hover {
        background-color: #512da8;
    }

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #757575;
}

.loading {
    text-align: center;
    padding: 40px 0;
    color: #757575;
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}
