/* Investment Manager - shared styles */

.im-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 20px 0 60px;
}

.im-auth-wrap {
	max-width: 420px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 32px;
	margin: 40px auto;
}

.im-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	background: #1d2327;
	border-radius: 8px;
	padding: 8px;
	margin-bottom: 24px;
}
.im-nav a {
	color: #fff;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 14px;
}
.im-nav a:hover {
	background: rgba(255,255,255,0.12);
}

.im-form .im-field {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.im-form label {
	font-weight: 600;
	font-size: 13px;
}
.im-form input[type="text"],
.im-form input[type="email"],
.im-form input[type="password"],
.im-form input[type="number"] {
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.im-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
}
.im-btn-primary {
	background: #2271b1;
	color: #fff;
}
.im-btn-primary:hover { background: #1a5a8c; color: #fff; }
.im-btn-outline {
	background: transparent;
	border: 1px solid #2271b1;
	color: #2271b1;
}

.im-auth-switch { margin-top: 16px; font-size: 13px; }

.im-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.im-alert-error { background: #fbeaea; color: #a02222; border: 1px solid #f0b8b8; }
.im-alert-success { background: #eaf7ec; color: #1e7a2e; border: 1px solid #b8e0bf; }

.im-stat-grid, .im-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.im-stat-card, .im-investment-card, .im-plan-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px;
}
.im-stat-card-single { max-width: 300px; margin-bottom: 20px; }

.im-stat-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	margin-bottom: 6px;
}
.im-stat-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
}

.im-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.im-card-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.im-card-table th { text-align: left; color: #666; font-weight: 500; padding: 4px 0; font-size: 13px; }
.im-card-table td { text-align: right; font-weight: 600; padding: 4px 0; font-size: 13px; }
.im-details-table td { text-align: left; }

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

.im-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}
.im-badge-active { background: #eaf7ec; color: #1e7a2e; }
.im-badge-awaiting_payment { background: #fff6e5; color: #a16a00; }
.im-badge-completed { background: #e7eefc; color: #22459c; }
.im-badge-cancelled, .im-badge-rejected { background: #fbeaea; color: #a02222; }
.im-badge-pending { background: #fff6e5; color: #a16a00; }
.im-badge-approved { background: #e7eefc; color: #22459c; }
.im-badge-paid { background: #eaf7ec; color: #1e7a2e; }
.im-badge-inactive { background: #eee; color: #666; }

.im-empty-state {
	text-align: center;
	padding: 40px 20px;
	background: #fafafa;
	border-radius: 8px;
	border: 1px dashed #ddd;
}

.im-invest-form {
	margin-top: 12px;
	background: #f8f9fa;
	padding: 14px;
	border-radius: 6px;
}
.im-invest-form input[type="number"] {
	width: 100%;
	padding: 8px 10px;
	margin: 6px 0 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.im-withdrawal-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 14px;
}
.im-withdrawal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.im-withdrawal-details th { text-align: left; color: #666; font-weight: 500; padding: 3px 12px 3px 0; font-size: 13px; }
.im-withdrawal-details td { text-align: left; font-size: 13px; }
.im-inline-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.im-inline-form input[type="text"] { padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; }

/* Admin */
.im-admin .im-notice-box {
	background: #fff8e5;
	border: 1px solid #f0dca0;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 16px 0;
}
.im-admin-form { max-width: 640px; }
