
.header_tabs {
    width: 800px;
    margin: 20px auto 0;
}

.ui-tabs .ui-tabs-nav {
    border: none !important;
}

/*
.header_tabs ul {
    text-align: center;
}

.header_tabs li a {
    font-size: 20px;
    color: #000 !important;
    padding: 0 !important;
    display: inline-block;
    float: none !important;
    text-decoration: none;
}

.header_tabs li a:hover {
    text-decoration: none;
}

.header_tabs li {
    display: inline-block;
    width: 100px !important;
    border: 2px solid #000 !important;
    padding: 15px !important;
    margin-left: -6px;
    text-align: center !important;
    float: none !important;
}

.header_tabs li.ui-state-active {
    background-color: #ff0000 !important;
    color: #fff !important;
}
*/

.studentMainView .list-view .items {
    min-height: 500px;
}

.studentMainView .list-view .pager {
    height: 45px;
}

.ui-tooltip {
    display: none;
}

.studentMainView {
    vertical-align: top;
    position: relative;
    width: 250px;
    min-height: 500px;
    display: inline-block;
}

.studentRow {
    float: left;
    width: 250px;
    font-size: 18px;
    margin: 12px 0 0 8px;
}

.studentRow a {
    text-decoration: none;
    color: #0fe30f;
}

.hrLineLeft {
    position: absolute;
    width: 2px;
    background: #666;
    height: 450px;
    margin-top: 30px;
    left: 215px;
}

.hrLineRight {
    position: absolute;
    width: 2px;
    background: #666;
    height: 450px;
    margin-top: 30px;
    left: 435px;
}

.student_header {
    text-align: center;
}

/* Class history summary styles */
.class-history-summary {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
}

/* Class history container styles */
#class-history-container {
    position: relative;
    clear: both;
}

.class-history-summary p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Pagination styles */
.pagination-container {
    margin: 20px 0;
    text-align: center;
    clear: both;
    width: 100%;
    position: relative;
}

.pagination {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: inline;
    margin: 0 2px;
}

.pagination li a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pagination li a:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.pagination li.selected a {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination li.disabled a {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* AJAX pagination styles */
.ajax-pagination-link {
    cursor: pointer;
    transition: all 0.2s ease;
}

.ajax-pagination-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    animation: fadeIn 0.3s ease-in;
}

.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in;
}

/* Smooth content transitions */
.history-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.history-content.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.history-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* File upload styles */
.uploaded-files {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.uploaded-files ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.uploaded-files li {
    margin: 8px 0;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

.delete-link {
    color: #d9534f;
    text-decoration: none;
    font-size: 12px;
    margin-left: 10px;
}

.delete-link:hover {
    color: #c9302c;
    text-decoration: underline;
}

.hint {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin: 5px 0;
}

/* File item styling */
.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin: 10px 0;
    background-color: #fff;
}

.file-info {
    flex: 1;
    min-width: 200px;
}

.file-name {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.file-original {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.file-actions {
    margin-left: auto;
}

.rename-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.rename-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Inline editing styling */
.file-name-edit {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-name-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #007bff;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
}

.file-name-input:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.edit-actions {
    display: flex;
    gap: 8px;
}

.btn-save, .btn-cancel {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-save {
    background-color: #28a745;
    color: white;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-save:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #545b62;
}

/* Flash message styling */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background-color: #28a745;
}

.flash-error {
    background-color: #dc3545;
}

.flash-warning {
    background-color: #ffc107;
    color: #212529;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* File icon fallback styling */
.file-icon {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
}

.file-icon::before {
    content: "📄";
}

.student_view {
    width: 945px;
    margin: 0 auto;
}

.student_view .left {
    float: left;
    width: 450px;
    margin-right: 20px;
}

.student_view .detail-view th {
    width: 180px;
}

.student_view h2 {
    display: block;
    margin: 35px 0 15px 5px;
    font-weight: normal;
}

.student_view_bottom {
    background-color: #d7d6d6;
    padding: 1px;
}

.student_view table.detail-view th {
    font-weight: normal;
}

.student_view table.detail-view tr.odd {
    background-color: #f6f6f6;
}

.student_view table.detail-view tr.even {
    background-color: #fff;
}

.student_view_bottom h2 {
    display: block;
    color: #fff;
    margin: 20px auto;
    text-align: center;
    font-weight: normal;
}

.student_view_bottom .inner {
    width: 945px;
    margin: 0 auto;
}

.student_view_bottom .inner table.detail-view tr {
    background-color: #fff;
    font-size: 16px;
}

.student_view_bottom .inner table.detail-view th {
    font-weight: normal;
    width: 95px
}

.student_view_bottom .inner table.detail-view  {
    width: 450px;
    margin: 8px 20px 10px 0;
    float: left;
}

.register_left {
    float: left;
    width: 50%;
    background-color: #ffffff;
    padding: 30px;
    margin-left: 0;
    box-sizing: border-box;
}

.register_left .row input[type="text"],
.register_left .row input[type="email"],
.register_left .row input[type="password"],
.register_left .row input[type="number"],
.register_left .row input[type="tel"],
.register_left .row textarea,
.register_left .row select {
    width: 100% !important;
    max-width: 100%;
    min-width: 300px;
    box-sizing: border-box;
    padding: 12px 15px;
    height: 45px;
    font-size: 14px;
    line-height: 1.5;
}

.register_left .row textarea {
    height: 120px !important;
    min-height: 120px;
    resize: vertical;
}

.register_left.large {
    width: 825px;
}

.gray_hr {
    margin: 30px auto;
    width: 80%;
    border-top: 2px solid #ccc; 
}

.gray_form {
    padding: 10px 0 40px;
    /* background-color: #f8f8f8; */
    /* margin-top: 110px; */
}

.register_form .buttons {
    text-align: center;
}

.register_form .buttons .register_button {
    font-size: 24px;
    border: 1px solid #ddd;
    padding: 10px 80px;
    color: #72ceff !important;
    margin: 30px 5px 30px;
    background-color: #ffffff;
}

.register_form .buttons .register_button:hover {
    color: #72ceff !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.register_form .row.error {
    text-align: left !important;
    padding: 0 !important;
    color: inherit;
    font-weight: normal;
    animation: none;
}

.register_form .row.error input,
.register_form .row.error textarea,
.register_form .row.error select,
.register_form .row input.error,
.register_form .row textarea.error,
.register_form .row select.error {
    text-align: left !important;
    color: inherit;
    font-weight: normal;
    animation: none;
}

.register_form .row.error label:first-child,
.register_form .row.error .errorMessage {
    text-align: left !important;
}

.margintop40 {
    margin-top: 40px;
}

.register_form {
    /*margin-top: 30px;*/
}

.register_top {
    width: 1024px;
    margin: 8px auto;
    text-align: left;
}

.register_container {
    position: relative;
}

.register_vertical {
    position: absolute;
    top: 0px;
    left: -60px;
}

.program_row.dateSelect {
    width: 552px;
}
.program_row.dateSelect input {
    width: 400px;
}

.centerInside {
    width: 495px;
    margin: 0 auto !important;
}
.centerInside input {
    margin-right: 20px !important;
}

.subtext {
    display: block;
    font-size: 12px;
}

.bootstrap-timepicker input {
    margin-left: 0px !important;
}

.header_tabs .col-md-5 .items {
    min-height: 245px;
}

.header_tabs .col-md-5 .pager {
    clear: both;
    text-align: left;
}
.header_tabs .col-md-5 .pager .next > a {
    float: none !important;
}
.header_tabs .col-md-5 .pager .previous > a {
    float: none !important;
}

ul.yiiPager a:link {
    padding: 4px 10px !important;
}

.header_tabs .col-md-5 .pager .first {
    display: none !important;
}

.header_tabs > div {
    margin-top: 30px;
}

.condo_container {
    width: 945px;
    margin: 0 auto;
}

.condo_wrapper {
    margin-top: 25px;
}

.condo_container .condo {
    margin-top: 25px;
}

.condo_wrapper .student_view {
    width: 100% !important;
}

h3 {
    font-weight: 500 !important;
    font-family: sans-serif !important;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 20px;
    text-align: center;
}

.pagination {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination li {
    display: inline;
    margin: 0 2px;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.pagination li span {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    cursor: default;
}

.pagination li a:first-child,
.pagination li span:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.pagination li a:last-child,
.pagination li span:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination li.disabled a {
    color: #999;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.pagination li.disabled a:hover {
    background-color: #f9f9f9;
    border-color: #ddd;
    color: #999;
}

/* Uploaded Files Section - Modern Grid Layout */
.uploaded-files-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.uploaded-files-section h4 {
    color: #333;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007cba;
    font-size: 1.2em;
}

.uploaded-files-section h4:first-child {
    margin-top: 0;
}

.files-list {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 100%;
}

/* Ensure maximum of 3 columns */
@media (min-width: 768px) {
    .files-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .files-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.file-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #007cba;
}

.file-info {
    margin-bottom: 15px;
    line-height: 1.5;
}

.file-info strong {
    color: #333;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.file-name {
    font-weight: 500;
    color: #007cba;
    font-size: 0.95em;
    word-break: break-word;
}

.file-original {
    color: #666;
    font-size: 0.85em;
    margin-left: 5px;
}

.file-preview {
    text-align: center;
    margin-top: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview img {
    border: 1px solid #ddd;
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.file-preview img:hover {
    transform: scale(1.05);
}

.file-download {
    margin-top: 15px;
    text-align: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007cba;
    border-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,186,0.3);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .files-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .file-item {
        padding: 15px;
        min-height: 100px;
    }
    
    .uploaded-files-section {
        padding: 15px;
    }
}

/* Agent page specific styles */
.student-details {
    margin: 5px 0;
    font-size: 0.85em;
}

.assignment-date {
    color: #666;
    font-style: italic;
}

.file-details {
    margin-top: 8px;
}

/* Modern File Uploader Styling */
.file-upload-section {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 30px 20px;
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-section:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,124,186,0.15);
}

.file-upload-section label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-upload-section input[type="file"] {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-section input[type="file"]:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0,124,186,0.2);
}

.file-upload-section input[type="file"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
}

.file-upload-section .hint {
    color: #6c757d;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* Custom file input styling */
.file-upload-section input[type="file"]::-webkit-file-upload-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.file-upload-section input[type="file"]::-webkit-file-upload-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,124,186,0.3);
}

.file-upload-section input[type="file"]::-moz-file-upload-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.file-upload-section input[type="file"]::-moz-file-upload-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,124,186,0.3);
}

/* Upload icon and visual enhancement */
.file-upload-section::before {
    content: "📁";
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* Share Modal Styles */
#shareModal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    display: none !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#shareModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure perfect centering */
#shareModal .modal-content {
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* Hide any other modal elements */
.modal:not(#shareModal) {
    display: none !important;
    visibility: hidden !important;
}

/* Hide any backdrop elements */
[class*="backdrop"],
[class*="overlay"],
[class*="modal-backdrop"] {
    display: none !important;
    visibility: hidden !important;
}

/* Ensure body doesn't have modal-related classes */
body.modal-open {
    overflow: auto !important;
}

/* Reset any potential centering issues */
body, html {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force perfect centering for the modal when shown */
#shareModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent body scroll when modal is open */
body.modal-share-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Hide any elements that might be creating a backdrop */
div[style*="position: fixed"][style*="background"]:not(#shareModal) {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 95vh;
    min-height: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease-out;
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    transform: translate(0, 0);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #f8f9fa;
    color: #333;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: #000;
    background-color: #f0f0f0;
}

.modal-body {
    padding: 30px 20px 60px 20px;
    background: #ffffff;
    min-height: 359px;
}

.modal-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    min-height: 40px;
    line-height: 1.4;
}

.form-group select {
    cursor: pointer;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group select option:checked {
    background-color: #007bff;
    color: white;
}

.form-group select option {
    padding: 8px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
    line-height: 1.5;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: -0.2px;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.share-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.share-link:hover {
    color: #0056b3;
    background-color: rgba(0, 123, 255, 0.1);
    text-decoration: none;
}

/* Shared files section */
.shared-files-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.shared-files-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.shared-files-section .file-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shared-files-section .file-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.shared-files-section .file-info strong {
    color: #007bff;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.shared-files-section .file-details {
    margin-top: 5px;
}

.shared-files-section .file-name {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 3px;
}

.shared-files-section .file-original {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Autocomplete suggestions */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    margin-top: 2px;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f8f9fa;
}

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

#userSelectGroup {
    position: relative;
    margin-bottom: 20px;
}

#userSearch {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#userSearch:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


#userSearch:focus + #userSuggestions {
    border-color: #007bff;
}

/* Loading state */
.suggestions-dropdown.loading {
    padding: 25px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    background: #f8f9fa;
}

.suggestions-dropdown.loading::before {
    content: "⏳";
    margin-right: 10px;
    font-size: 16px;
}

/* No results state */
.suggestions-dropdown.no-results {
    padding: 25px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
    background: #f8f9fa;
}

.suggestions-dropdown.no-results::before {
    content: "🔍";
    margin-right: 10px;
    font-size: 16px;
}

/* Scrollbar styling for suggestions */
.suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus ring for accessibility */
.suggestion-item:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

/* Better spacing for form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-upload-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .file-upload-section label {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .file-upload-section input[type="file"] {
        max-width: 100%;
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
}
