/**
 * Dropbox Fácil — estilos da interface pública (shortcode).
 */

.dbf {
	--dbf-blue: #0061ff;
	--dbf-blue-dark: #0047b3;
	--dbf-green: #0061ff;
	--dbf-red: #ea4335;
	--dbf-ink: #202124;
	--dbf-muted: #5f6368;
	--dbf-line: #e3e6ea;
	--dbf-bg: #f8f9fb;

	max-width: 720px;
	margin: 0 auto;
	font-size: 15px;
	color: var( --dbf-ink );
	line-height: 1.5;
	box-sizing: border-box;
}

.dbf *,
.dbf *::before,
.dbf *::after {
	box-sizing: border-box;
}

/* Notices --------------------------------------------------------------- */
.dbf--notice {
	background: var( --dbf-bg );
	border: 1px solid var( --dbf-line );
	border-radius: 12px;
	padding: 22px;
	text-align: center;
	color: var( --dbf-muted );
}

/* Cartão de login ------------------------------------------------------- */
.dbf--login {
	display: flex;
	justify-content: center;
}

.dbf__card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid var( --dbf-line );
	border-radius: 16px;
	padding: 34px 30px;
	text-align: center;
	box-shadow: 0 8px 30px rgba( 32, 33, 36, 0.08 );
}

.dbf__logo {
	width: 70px;
	height: 70px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: linear-gradient( 135deg, #e8f0fe, #e6f4ea );
	display: flex;
	align-items: center;
	justify-content: center;
	color: var( --dbf-blue );
}

.dbf__card h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
}

.dbf__lead {
	color: var( --dbf-muted );
	margin: 0 0 20px;
	font-size: 14px;
}

.dbf__mfa {
	display: flex;
	gap: 11px;
	text-align: left;
	background: #f1f6fe;
	border: 1px solid #d2e3fc;
	border-radius: 11px;
	padding: 13px 15px;
	margin-bottom: 18px;
}

.dbf__mfa-icon {
	color: var( --dbf-blue );
	flex-shrink: 0;
}

.dbf__mfa strong {
	display: block;
	font-size: 13px;
	margin-bottom: 3px;
}

.dbf__mfa p {
	margin: 0;
	font-size: 12.5px;
	color: var( --dbf-muted );
}

/* Botões ---------------------------------------------------------------- */
.dbf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	border: none;
	border-radius: 9px;
	padding: 11px 20px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: box-shadow 0.15s ease, background 0.15s ease, transform 0.05s ease;
	text-decoration: none;
}

.dbf__btn:active {
	transform: translateY( 1px );
}

.dbf__btn--dropbox {
	width: 100%;
	background: var( --dbf-blue );
	color: #fff;
	border: 1px solid var( --dbf-blue );
	box-shadow: 0 1px 2px rgba( 0, 97, 255, 0.2 );
}

.dbf__btn--dropbox:hover {
	background: var( --dbf-blue-dark );
	border-color: var( --dbf-blue-dark );
	box-shadow: 0 2px 6px rgba( 0, 97, 255, 0.3 );
}

.dbf__g-logo {
	display: inline-flex;
}

.dbf__btn--ghost {
	background: transparent;
	color: var( --dbf-muted );
	border: 1px solid var( --dbf-line );
	padding: 7px 14px;
	font-size: 13px;
}

.dbf__btn--ghost:hover {
	background: var( --dbf-bg );
	color: var( --dbf-ink );
}

.dbf__btn--primary {
	background: var( --dbf-blue );
	color: #fff;
}

.dbf__btn--primary:hover {
	background: var( --dbf-blue-dark );
}

.dbf__btn--danger {
	background: transparent;
	color: var( --dbf-red );
	border: 1px solid #f6cfcb;
	padding: 6px 12px;
	font-size: 12.5px;
}

.dbf__btn--danger:hover {
	background: #fce8e6;
}

.dbf__fine {
	margin: 16px 0 0;
	font-size: 11.5px;
	color: #80868b;
}

/* Alerta ---------------------------------------------------------------- */
.dbf__alert {
	border-radius: 10px;
	padding: 11px 15px;
	font-size: 13.5px;
	margin-bottom: 16px;
}

.dbf__alert--error {
	background: #fce8e6;
	color: #c5221f;
	border: 1px solid #f6cfcb;
}

.dbf__alert--success {
	background: #e6f4ea;
	color: #137333;
	border: 1px solid #b7e1c2;
}

/* Barra do usuário ------------------------------------------------------ */
.dbf__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px solid var( --dbf-line );
	border-radius: 12px;
	padding: 13px 16px;
	margin-bottom: 18px;
}

.dbf__user {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.dbf__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient( 135deg, var( --dbf-blue ), var( --dbf-green ) );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 17px;
	flex-shrink: 0;
}

.dbf__user strong {
	display: block;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dbf__email {
	font-size: 12.5px;
	color: var( --dbf-muted );
}

.dbf__bar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.dbf__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #e6f4ea;
	color: #137333;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 700;
}

.dbf__title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
}

/* Área de envio --------------------------------------------------------- */
.dbf__drop {
	border: 2px dashed #c3d4f5;
	border-radius: 14px;
	background: #f8faff;
	padding: 26px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	color: var( --dbf-blue );
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
}

.dbf__drop:hover,
.dbf__drop:focus,
.dbf__drop.is-drag {
	border-color: var( --dbf-blue );
	background: #eef4fe;
	outline: none;
}

.dbf__drop strong {
	font-size: 14px;
	color: var( --dbf-ink );
}

.dbf__drop span {
	font-size: 12px;
	color: var( --dbf-muted );
}

/* Barra de progresso ---------------------------------------------------- */
.dbf__progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.dbf__progress-bar {
	flex: 1;
	height: 8px;
	background: var( --dbf-line );
	border-radius: 999px;
	overflow: hidden;
}

.dbf__progress-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient( 90deg, var( --dbf-blue ), var( --dbf-green ) );
	transition: width 0.2s ease;
}

.dbf__progress-text {
	font-size: 12px;
	font-weight: 600;
	color: var( --dbf-muted );
	min-width: 38px;
	text-align: right;
}

/* Lista de arquivos ----------------------------------------------------- */
.dbf__list-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.dbf__list-head h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
}

.dbf__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dbf__loading,
.dbf__empty {
	text-align: center;
	color: var( --dbf-muted );
	padding: 26px;
	font-size: 13.5px;
	background: var( --dbf-bg );
	border-radius: 10px;
}

.dbf__item {
	display: flex;
	align-items: center;
	gap: 13px;
	background: #fff;
	border: 1px solid var( --dbf-line );
	border-radius: 11px;
	padding: 12px 14px;
	transition: box-shadow 0.15s ease;
}

.dbf__item:hover {
	box-shadow: 0 3px 10px rgba( 32, 33, 36, 0.08 );
}

.dbf__item-icon {
	width: 38px;
	height: 38px;
	border-radius: 9px;
	background: #eef4fe;
	color: var( --dbf-blue );
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.dbf__item-info {
	flex: 1;
	min-width: 0;
}

.dbf__item-name {
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dbf__item-meta {
	font-size: 11.5px;
	color: var( --dbf-muted );
}

.dbf__item-actions {
	display: flex;
	gap: 7px;
	flex-shrink: 0;
}

.dbf__icon-btn {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid var( --dbf-line );
	background: #fff;
	color: var( --dbf-muted );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dbf__icon-btn:hover {
	background: #eef4fe;
	color: var( --dbf-blue );
	border-color: #c3d4f5;
}

.dbf__icon-btn--danger:hover {
	background: #fce8e6;
	color: var( --dbf-red );
	border-color: #f6cfcb;
}

.dbf__icon-btn[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* Spinner --------------------------------------------------------------- */
.dbf__spin {
	width: 15px;
	height: 15px;
	border: 2px solid rgba( 26, 115, 232, 0.25 );
	border-top-color: var( --dbf-blue );
	border-radius: 50%;
	animation: dbf-spin 0.7s linear infinite;
	display: inline-block;
}

@keyframes dbf-spin {
	to {
		transform: rotate( 360deg );
	}
}

@media ( max-width: 480px ) {
	.dbf__item-actions {
		flex-direction: column;
	}
}
