/* Edit Mode Styles */
.edit-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: none;
}

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

.edit-btn,
.save-btn,
.cancel-btn,
.logout-btn,
.add-element-btn {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    transition: background-color 0.3s;
}

.edit-btn:hover,
.save-btn:hover,
.cancel-btn:hover,
.logout-btn:hover,
.add-element-btn:hover {
    background: #1D00FF;
}

.cancel-btn {
    background: #666;
}

.logout-btn {
    background: #ff0000;
}

.add-element-btn {
    background: #00AA00;
}

/* Editable Content Styles */
body.edit-mode [contenteditable="true"] {
    outline: 2px dashed #1D00FF;
    outline-offset: 4px;
    cursor: text;
    position: relative;
}

body.edit-mode [contenteditable="true"]:hover {
    outline-color: #000;
}

body.edit-mode [contenteditable="true"]:focus {
    outline-style: solid;
}

/* Image Edit Overlay */
body.edit-mode .project-full,
body.edit-mode .project-col {
    position: relative;
}

body.edit-mode .project-full img,
body.edit-mode .project-col img,
body.edit-mode .about-image img {
    cursor: pointer;
}

.image-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 0, 255, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

body.edit-mode .project-full:hover .image-edit-overlay,
body.edit-mode .project-col:hover .image-edit-overlay,
body.edit-mode .about-image:hover .image-edit-overlay {
    display: flex;
}

.image-edit-btn {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.image-edit-btn:hover {
    background: #1D00FF;
}

/* Image Upload Modal */
.image-upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.image-upload-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    max-width: 500px;
    width: 90%;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.file-input-wrapper {
    margin: 20px 0;
}

.file-input-wrapper input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    cursor: pointer;
}

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

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.upload-btn {
    background: #000;
    color: #fff;
}

.upload-btn:hover {
    background: #1D00FF;
}

.close-modal-btn {
    background: #666;
    color: #fff;
}

.close-modal-btn:hover {
    background: #999;
}

/* Edit Mode Indicator */
.edit-mode-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #1D00FF;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    z-index: 9999;
    display: none;
}

body.edit-mode .edit-mode-indicator {
    display: block;
}

/* Element Controls */
.element-controls {
    display: none;
    position: absolute;
    top: -35px;
    right: 0;
    gap: 5px;
    z-index: 100;
}

body.edit-mode .project-full,
body.edit-mode .project-col,
body.edit-mode .project-text,
body.edit-mode .project-row {
    position: relative;
}

body.edit-mode .project-full:hover .element-controls,
body.edit-mode .project-col:hover .element-controls,
body.edit-mode .project-text:hover .element-controls {
    display: flex;
}

.element-control-btn {
    padding: 5px 10px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-family: Helvetica, Arial, sans-serif;
}

.element-control-btn:hover {
    background: #1D00FF;
}

.element-control-btn.delete {
    background: #ff0000;
}

.element-control-btn.delete:hover {
    background: #cc0000;
}

/* Add Element Buttons */
.add-element-zone {
    display: none;
    text-align: center;
    padding: 20px;
    border: 2px dashed #1D00FF;
    margin: 20px 0;
}

body.edit-mode .add-element-zone {
    display: block;
}

.add-element-menu {
    display: none;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.add-element-menu.active {
    display: flex;
}

.add-element-option {
    padding: 10px 15px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: Helvetica, Arial, sans-serif;
}

.add-element-option:hover {
    background: #1D00FF;
}
