/**
 * FreedomReader Reading Progress Styles
 */

/* Reading progress bar */
#fr-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 0%;
	height: 3px;
	background: #007cba;
	z-index: 9999;
	transition: width 0.3s ease;
}

/* Modal overlay and container */
.fr-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: none;
}

.fr-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	z-index: 10001;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fr-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fr-modal-close:hover {
	color: #333;
}

.fr-modal h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 20px;
}

/* Social sharing buttons */
.fr-share-buttons {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.fr-share-btn,
.fr-copy-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

.fr-share-facebook {
	background: #1877f2;
	color: #fff;
}

.fr-share-facebook:hover {
	background: #166fe5;
	color: #fff;
}

.fr-share-twitter {
	background: #1da1f2;
	color: #fff;
}

.fr-share-twitter:hover {
	background: #1a91da;
	color: #fff;
}

.fr-share-linkedin {
	background: #0077b5;
	color: #fff;
}

.fr-share-linkedin:hover {
	background: #006ba1;
	color: #fff;
}

.fr-copy-link {
	background: #6c757d;
	color: #fff;
}

.fr-copy-link:hover {
	background: #545b62;
	color: #fff;
}

/* Email unlock form */
.fr-email-unlock-form {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	align-items: center;
}

.fr-email-unlock-form input[type="email"] {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.fr-email-unlock-form button {
	padding: 10px 20px;
	background: #007cba;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.3s ease;
}

.fr-email-unlock-form button:hover {
	background: #005a87;
}

.fr-email-unlock-form button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.fr-success-message {
	background: #d4edda;
	color: #155724;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #c3e6cb;
	text-align: center;
}

/* Expandable notes */
.fr-note {
	margin: 15px 0;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	overflow: hidden;
}

.fr-note-toggle {
	display: block;
	width: 100%;
	padding: 12px 15px;
	background: #f8f9fa;
	border: none;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #495057;
	transition: background 0.3s ease;
}

.fr-note-toggle:hover {
	background: #e9ecef;
}

.fr-note-toggle::after {
	content: '▼';
	float: right;
	transition: transform 0.3s ease;
}

.fr-note-toggle.collapsed::after {
	transform: rotate(-90deg);
}

.fr-note-content {
	padding: 15px;
	background: #fff;
	border-top: 1px solid #e9ecef;
	display: none;
}

.fr-note-content p {
	margin: 0 0 10px 0;
}

.fr-note-content p:last-child {
	margin-bottom: 0;
}

/* Admin manual time setting */
.fr-manual-time {
	display: none;
	margin-top: 10px;
	padding: 15px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.fr-manual-time label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.fr-manual-time input {
	width: 100px;
}

/* Responsive design */
@media (max-width: 768px) {
	.fr-modal {
		padding: 20px;
		margin: 20px;
		width: calc(100% - 40px);
	}
	
	.fr-share-buttons {
		flex-direction: column;
	}
	
	.fr-email-unlock-form {
		flex-direction: column;
		align-items: stretch;
	}
	
	.fr-email-unlock-form button {
		margin-top: 10px;
	}
}
