@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@300;400;600;700&display=swap');

.vdocipher-root,
.vdocipher-root * {
    font-family: 'Source Serif Pro', sans-seri !important;
}

#vdocipher-settings-wrapper {
    border: 1px solid #d1d1d1;
    padding: 1.5em;
    max-width: 600px;
    background: #f5f5f5;
    font-family: 'Source Serif Pro', sans-serif !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    max-height: 600px;
    overflow: scroll;
}

h3 {
    font-size: 2em;
}

h4 {
    font-size: 1.5em;
}

label {
    font-size: 1.2em;
}

#vdocipher-settings-wrapper h3 {
    margin-bottom: 1em;
    border-bottom: 2px solid #666;
    padding-bottom: 0.3em;
}

#vdocipher-settings-wrapper h4 {
    color: #444;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

#vdocipher-settings-wrapper label {
    display: block;
    font-weight: 600;
    color: #444;
}

#vdocipher-settings-wrapper input,
#vdocipher-settings-wrapper select {
    padding: 0.6em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
}

#vdocipher-settings-wrapper input {
    width: 91%;
}

#vdocipher-settings-wrapper select {
    width: 99%;
}

#vdocipher-settings-wrapper input:focus,
#vdocipher-settings-wrapper select:focus {
    border-color: #666;
    outline: none;
    background: #fff;
}

#vdocipher-settings-wrapper button {
    background: #7c7c7c;
    color: #fff;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

#vdocipher-settings-wrapper button:hover {
    background: #a7aaad;
}

#lecture-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#lecture-list li {
    display: flex;
    align-items: center;
    padding: 0.8em;
    border-bottom: 2px solid #8e8c8c;
    background: #fffefe;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

#lecture-list li span {
    flex-grow: 1;
    color: #444;
    font-weight: 500;
    font-size: 1.2em;
    padding-left: 10px;
}

#lecture-list button {
    background: #c3c4c7;
    margin-left: 0.5em;
    font-size: 1em;
    margin-top: 1em;
}

#lecture-list .edit-lecture {
    background: #ddd;
    margin-top: 0px;
}

#lecture-list .edit-lecture:hover {
    background: #a7aaad;
}

#lecture-list .delete-lecture {
    background: #ddd;
    margin-top: 0px;
}

#lecture-list .delete-lecture:hover {
    background: #a7aaad;
}

.manage-lecture-section {
    padding: 1em;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1em;
}

.close-manage-lecture {
    float: right;
    cursor: pointer;
}

.close-manage-lecture:hover {
    color: #666;
}

.create-lecture-status,
.manage-lecture-status {
    margin-top: 0.5em;
    font-size: 1em;
    color: #666;
}

.manage-lecture-status.success {
    color: #444;
}

.shared-viewers-ul {
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.shared-viewers-ul li {
    padding: 0.4em 0;
    color: #555;
    font-size: 1em;
}

.shared-viewers-list {
    background: #fafafa;
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 0.5em;
}

.lecture-video-list {
    margin-bottom: 1em;
    gap: 5px;
}

.lecture-video-ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.video-status-message {
    color: red;
    font-size: 0.9em;
    margin-top: 0.2em;
}

.move-video {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.8em;
}

.delete-video {
    margin-left: 4px;
    padding: 2px 6px;
    font-size: 0.8em;
}

.lecture-add-video {
    margin-top: 0.5em;
}

.report-wrapper {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
    font-size: 0.9em;
    max-height: 600px;
    overflow: scroll;
}

.save-max-views {
    margin-left: 5px;
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.edit-max-view {
    width: 60px;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.origin-column {
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 1em;
}

.tracking-table {
    width: 100%;
    border-collapse: collapse;
}

.tracking-lecture {
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
    font-size: 1em;
}

.reset-view-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background: #888;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.edit-action {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

button.edit-set {
    padding: 6px 10px;
    background-color: #888;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Source Serif Pro', sans-serif !important;
}

button.edit-set:hover {
    background-color: #666;
}

a {
    font-family: 'Source Serif Pro', sans-serif !important;
}

.report-wrapper,
.report-wrapper *,
#lecture-list,
#lecture-list *,
.tracking-table,
.tracking-table * {
    font-family: 'Source Serif Pro', sans-serif !important;
    color: #444 !important;
}

.user-info {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user {
    margin-bottom: 8px;
    font-weight: 500;
}

.user-email {
    color: #555;
    font-size: 14px;
}

.google-login-button {
    display: inline-flex;
    align-items: center;
    background-color: #f5f5f5;
    color: #000;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 8px 16px;
    text-decoration: none;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.google-login-button:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.google-login-button span {
    line-height: 18px;
}

.vdocipher-lectures-container {
    max-height: 400px;
    overflow: scroll;
}

.lecture-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.lecture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f5f5f5;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.lecture-title {
    flex: 1;
    display: flex;
    align-items: center;
    line-height: 0.5;
    font-family: 'Source Serif Pro', sans-serif;
}

.lecture-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 20px;
    padding-right: 10px;
}

.lecture-toggle {
    font-size: 24px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecture-body {
    display: none;
    background-color: #fff;
    padding-left: 1.5em;
    max-height: 210px;
    overflow: scroll;
}

.lecture-card.open .lecture-body {
    display: block;
}

.video-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-left: 20px;
    gap: 12px;
}

.video-title {
    flex-grow: 1;
    line-height: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.video-buttons {
    display: flex;
}

.vid-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

button.vid-btn {
    font-size: 14px;
    margin-top: 15px;
}

.vid-btn:hover {
    background-color: #495057;
}

.tracking-table th, .tracking-table td {
    padding: 6px 10px;
    text-align: left;
    border: 1px solid #ccc;
}
.tracking-table input[type="text"], .tracking-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 4px;
    font-size: 13px;
}
.tracking-table {
    border-collapse: collapse;
    min-width: 550px;
}

.max-views-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 200px;
}

.max-views-cell input[type="number"] {
  width: 50px;
  padding: 4px;
  font-size: 13px;
}

.max-views-cell button {
  padding: 4px 8px;
  font-size: 13px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.max-views-cell input,
.max-views-cell button {
    margin: 0;
    display: inline-block;
}

.noti {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.noti-btn {
    display: flex;
    justify-content: end;
    cursor:pointer;
    font-size: 12px;
}

#report-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
}

#report-table th,
#report-table td {
    padding: 6px 10px;
    border: 1px solid #ccc;
    white-space: normal;
    vertical-align: top;
}

#report-table th:nth-child(5),
#report-table td:nth-child(5) {
    white-space: nowrap;
    width: 1%;
}

.max-views-cell {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.remove-all-viewers {
    position: absolute;
    top: -7px;
    right: 10px;
    font-size: 0.9em !important;
}

.shared-viewers-ul {
    max-height: 200px;
    overflow: scroll;
}

.error-code {
  	color: red;
}
