/* style-paper-forms.css */

/*========================================
  Color & Theme Variables
========================================*/
:root {
    --primary: #35607f;
    --light: #f4f7f9;
    --dark: #2a4a5e;
    --accent: #ffbb00;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --text-base: #333;
    --text-muted: #555;
    --bg-card: #ffffff;
    --bg-section: #f9f9f9;
    --bg-hover: rgba(53, 96, 127, 0.1);
}

/*========================================
  Base Container & Typography
========================================*/
#paper_content {
    max-width: 900px;
    margin: 20px auto;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-base);
}

.paper_title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

/* Improved styling for Authors and Abstract sections */

.authors,
.paper_abstract {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Abstract styling */
.paper_abstract {
    font-style: italic;
    background-color: var(--light);
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Authors container with a left accent border */
.authors {
    padding-left: 12px;
    border-left: 4px solid var(--accent);
    background-color: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.authors-inline {
    font-size: 1.1rem;
    color: var(--text-base);
    margin-bottom: 16px;
    /* any other styling you like… */
}


/* List inside authors */
.authors ul {
    padding-left: 20px;
    margin-top: 8px;
}

/* Individual author items */
.authors li {
    margin-bottom: 6px;
    color: var(--text-base);
    position: relative;
    padding-left: 8px;
}

/* Add a small bullet accent before each author */
.authors li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}


/*========================================
  Poster Section
========================================*/
/*========================================
  Styled Poster Download Section
========================================*/
.poster {
    display: flex;
    align-items: center;
    background-color: var(--light);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: 'Segoe UI', sans-serif;
}

.poster p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-base);
}

.poster p a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.2s ease, transform 0.1s ease;
}

.poster p a:hover {
    color: var(--dark);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .poster {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .poster p {
        font-size: 0.95rem;
    }

    .poster p a {
        margin-left: 0;
        display: inline-block;
        margin-top: 6px;
    }
}

/*========================================
  Form Styling
========================================*/
form {
    margin-top: 20px;
    padding: 16px;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: var(--radius);
}

label {
    display: block;
    margin-top: 12px;
    font-weight: 500;
    color: var(--text-base);
}

input[type="file"],
select {
    margin-top: 6px;
    padding: 8px;
    font-size: 0.95rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-base);
}

/* Buttons */
input[type="submit"],
button {
    margin-top: 16px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

input[type="submit"]:hover,
button:hover {
    background-color: var(--dark);
    transform: translateY(-1px);
}

/* Delete button */
input[type="submit"][value="DELETE"] {
    background-color: #dc3545;
}

input[type="submit"][value="DELETE"]:hover {
    background-color: #a71d2a;
}

/* Message Box */
#message {
    margin-top: 15px;
    padding: 10px;
    /*background-color: #e6ffe6;
    border: 1px solid #28a745;
    color: #155724;*/
    border-radius: 6px;
    display: none;
}

/*========================================
  Presenter Section (Enhanced & Responsive)
========================================*/
/* Presenter container */
.presenter-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;  /* Center all child blocks horizontally */
    background: var(--bg-section);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: background-color 0.2s ease;
    text-align: center;       /* Ensure child text is centered */
}

.presenter-item:hover {
    background-color: var(--bg-hover);
}

/* Individual presenter elements, centered */
.presenter-person,
.presenter-affiliation,
.presenter-slides,
.presenter-buttons {
    flex: 1 1 200px;
    margin: 8px 12px;         /* Small spacing around each block */
    text-align: center;       /* Center the contents */
}

/* Presenter name */
.presenter-person {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Presenter affiliation */
.presenter-affiliation {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Presenter slides */
.presenter-slides {
    font-size: 0.95rem;
    color: var(--primary);
}

/* Add a slide icon before download link */
.presenter-slides a {
    position: relative;
    padding-left: 22px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    color: var(--primary);
}
.presenter-slides a::before {
    content: "\f1c4";                 /* Unicode for PowerPoint icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--accent);
}
.presenter-slides a:hover {
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Actions & Buttons container */
.presenter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}


/* Hide raw hidden inputs */
.presenter-buttons input[type="hidden"] {
    display: none;
}

/* DELETE button (if present) */
.presenter-buttons input[type="submit"][value="DELETE"] {
    background-color: #dc3545;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.presenter-buttons input[type="submit"][value="DELETE"]:hover {
    background-color: #a71d2a;
    transform: translateY(-1px);
}




/*========================================
  Responsive Media Queries
========================================*/
@media (max-width: 768px) {
    #paper_content {
        padding: 16px;
    }

    .paper_title {
        font-size: 1.6rem;
    }

    input[type="submit"],
    button {
        width: 100%;
        font-size: 1rem;
    }

    select {
        width: 100%;
    }

    .presenter-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .presenter-person,
    .presenter-affiliation,
    .presenter-slides,
    .presenter-buttons {
        flex: 1 1 100%;
        margin-bottom: 8px;
    }

    .presenter-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .paper_title {
        font-size: 1.4rem;
    }

    label {
        font-size: 0.95rem;
    }

    .presenter-person {
        font-size: 1rem;
    }

    .presenter-affiliation,
    .presenter-slides {
        font-size: 0.9rem;
    }

    .presenter-buttons .fa-trash {
        font-size: 1.1rem;
    }
}

/*========================================
  Form-Group & Labels
========================================*/
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark);
}

/*========================================
  Select Dropdown
========================================*/
.form-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    background-color: #fff;
    color: var(--text-base);
    transition: border-color 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(53, 96, 127, 0.2);
}

/*========================================
  Drag-&-Drop Zone for File Upload
========================================*/
.dropzone {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    margin-top: 8px;
    padding: 20px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    background-color: var(--light);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dropzone-icon {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.dropzone:hover {
    background-color: #f0f7fb;
    border-color: var(--dark);
}

.dropzone.dragover {
    background-color: #eef9ff;
    border-color: var(--accent);
}

.dropzone-text {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    word-break: break-all; /* long filenames wrap */
}



/* Hide the real file input */
.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    /* Allows the user to click anywhere in .dropzone to open file dialog */
}

.file-selected {
    color: var(--primary);
    font-weight: bold;
}

/*========================================
  Button Styling
========================================*/
.btn-primary {
    display: inline-block;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary);
    box-shadow: var(--shadow);
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--dark);
    transform: translateY(-1px);
}

/*========================================
  Message / Alert Box
========================================*/
.sigir-message {
    margin-top: 12px;
    padding: 12px;
    /*background-color: #e6ffe6;
    border: 1px solid #28a745;
    color: #155724;*/
    border-radius: var(--radius);
    display: none; /* show/hide via JS */
    font-size: 0.95rem;
}

/*========================================
  Responsive Adjustments
========================================*/
@media (max-width: 768px) {
    .form-select,
    .dropzone,
    .btn-primary {
        width: 100%;
    }
}

/*========================================
  Poster-Upload Form (Container)
========================================*/
.poster-form {
    max-width: 600px;
    margin: 24px auto;
    padding: 20px;
    background-color: var(--bg-card);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-base);
}

.poster-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

/*========================================
  Dropzone (same style as slides-dropzone)
========================================*/
.poster-form .dropzone {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    margin-top: 8px;
    padding: 20px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    background-color: var(--light);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.poster-form .dropzone:hover {
    background-color: #f0f7fb;
    border-color: var(--dark);
}

.poster-form .dropzone.dragover {
    background-color: #eef9ff;
    border-color: var(--accent);
}

.poster-form .dropzone-icon {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.poster-form .dropzone-text {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    word-break: break-all; /* long filenames wrap */
}

/* Hide the real file input but keep it clickable */
.poster-form .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/*========================================
  Submit Button
========================================*/
.poster-form .btn-primary {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.poster-form .btn-primary:hover {
    background-color: var(--dark);
    transform: translateY(-1px);
}

/*========================================
  Responsive Adjustments
========================================*/
@media (max-width: 768px) {
    .poster-form {
        padding: 16px;
    }
    .poster-form .btn-primary {
        width: 100%;
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--dark);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.inactiveLink {
    pointer-events: none;
    cursor: default;
    color: gray;
}



