html,body,h1,h2,h3,h4,h5 {font-family: "Open Sans", sans-serif}


.upload_form_cont {
    background: -moz-linear-gradient(#ffffff, #f2f2f2);
    background: -ms-linear-gradient(#ffffff, #f2f2f2);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #f2f2f2));
    background: -webkit-linear-gradient(#ffffff, #f2f2f2);
    background: -o-linear-gradient(#ffffff, #f2f2f2);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f2f2f2');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f2f2f2')";
    background: linear-gradient(#ffffff, #f2f2f2);

    color:#000;
    width:100%;
    overflow:hidden;
}
#upload_form {
    float:left;
    padding:20px;
    width:700px;
}
#preview {
    background-color:#fff;
    display:block;
    float:right;
    width:200px;
}
#upload_form > div {
    margin-bottom:10px;
}
#speed,#remaining {
    float:left;
    width:100px;
}
#b_transfered {
    float:right;
    text-align:right;
}
.clear_both {
    clear:both;
}
.upload_form_cont input {
    border-radius:10px;
    -moz-border-radius:10px;
    -ms-border-radius:10px;
    -o-border-radius:10px;
    -webkit-border-radius:10px;

    border:1px solid #ccc;
    font-size:14pt;
    padding:5px 10px;
}
.upload_form_cont input[type=button] {
    background: -moz-linear-gradient(#ffffff, #dfdfdf);
    background: -ms-linear-gradient(#ffffff, #dfdfdf);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #dfdfdf));
    background: -webkit-linear-gradient(#ffffff, #dfdfdf);
    background: -o-linear-gradient(#ffffff, #dfdfdf);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dfdfdf')";
    background: linear-gradient(#ffffff, #dfdfdf);
}
#image_file {
    width:400px;
}
#progress_info {
    font-size:10pt;
}
#fileinfo,#error,#error2,#abort,#warnsize {
    color:#aaa;
    display:none;
    font-size:10pt;
    font-style:italic;
    margin-top:10px;
}
#progress {
    border:1px solid #ccc;
    display:none;
    float:left;
    height:14px;

    border-radius:10px;
    -moz-border-radius:10px;
    -ms-border-radius:10px;
    -o-border-radius:10px;
    -webkit-border-radius:10px;

    background: -moz-linear-gradient(#66cc00, #4b9500);
    background: -ms-linear-gradient(#66cc00, #4b9500);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #66cc00), color-stop(100%, #4b9500));
    background: -webkit-linear-gradient(#66cc00, #4b9500);
    background: -o-linear-gradient(#66cc00, #4b9500);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#66cc00', endColorstr='#4b9500');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#66cc00', endColorstr='#4b9500')";
    background: linear-gradient(#66cc00, #4b9500);
}
#progress_percent {
    float:right;
}
#upload_response {
    margin-top: 10px;
    padding: 20px;
    overflow: hidden;
    display: none;
    border: 1px solid #ccc;

    border-radius:10px;
    -moz-border-radius:10px;
    -ms-border-radius:10px;
    -o-border-radius:10px;
    -webkit-border-radius:10px;

    box-shadow: 0 0 5px #ccc;
    background: -moz-linear-gradient(#bbb, #eee);
    background: -ms-linear-gradient(#bbb, #eee);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #bbb), color-stop(100%, #eee));
    background: -webkit-linear-gradient(#bbb, #eee);
    background: -o-linear-gradient(#bbb, #eee);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bbb', endColorstr='#eee');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#bbb', endColorstr='#eee')";
    background: linear-gradient(#bbb, #eee);
}

/* Lightbox styles */
.lightbox {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: all 0.4s ease-in-out;
}

.lightbox.lightbox-show {
opacity: 1;
visibility: visible;
}

.lightbox-overlay {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: black;
opacity: 0.8;
}

.lightbox-close-button {
position: absolute;
top: 0;
right: 0;
margin: 0;
padding: 0;
border: 0;
background: transparent;
font-size: 32px;
line-height: 1;
}

.lightbox-image {
display: block;
margin: auto;
max-height: 90%;
max-width: 90%;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}


/* General styles */
html, body, h1, h2, h3, h4, h5 {
    font-family: "Open Sans", sans-serif;
}

/* Post content styles */
.postContentDiv {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    padding: 20px;
}

.Announcement {
    width: 100%;
    min-height: 100px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    resize: vertical;
}

/* File input styles */
.file-input {
    position: relative;
    display: inline-block;
}

.file-input input[type="file"] {
    position: absolute;
    left: -9999px;
}

.custom-file-upload {
    border: 2px solid #4CAF50;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    color: white;
    border-radius: 5px;
    transition: all 0.3s;
}

.custom-file-upload:hover {
    background-color: #4CAF50;
    color: white;
}

/* File list styles */
#fileList {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.file-preview {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 5px;
}

.file-image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: bold;
    margin: 0;
}

.file-size {
    color: #777;
    font-size: 12px;
    margin: 0;
}

.progress-bar {
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 2.5px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease-in-out;
}

.upload-result {
    font-size: 12px;
    margin-top: 5px;
}

.upload-result.success {
    color: #4CAF50;
}

.upload-result.error {
    color: #f44336;
}

.remove-file {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.remove-file:hover {
    background-color: #d32f2f;
}

/* Total size and error message styles */
#totalSize, #errorMessage {
    font-size: 12px;
    margin-top: 10px;
}

#errorMessage {
    color: #f44336;
}

/* Submit button styles */
#submitAnnouncement {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 5px;
}

#submitAnnouncement:hover {
    background-color: #45a049;
}

#submitAnnouncement:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Share filter styles */
#share_filter {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.lightbox.lightbox-show {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: black;
    opacity: 0.8;
}

.lightbox-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 5px 10px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.lightbox-close-button:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lightbox-image {
    display: block;
    margin: auto;
    max-height: 90%;
    max-width: 90%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .postContentDiv {
        padding: 15px;
    }

    #submitAnnouncement, .custom-file-upload {
        width: 100%;
        margin-bottom: 10px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-preview {
        margin-bottom: 10px;
    }

    .remove-file {
        align-self: flex-end;
        margin-top: -30px;
    }
}