* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
	font-family: YekanBakhFa;
	font-style: normal;
	font-weight: 600;
	src: url('https://rozup.ir/view/4137635/YekanBakhFaNum-SemiBold.woff2') format('woff2');		 
}

body {
    font-family: YekanBakhFa, -apple-system, sans-serif;
    line-height: 1.6;
    background: #f8fafc;
    color: #334155;
    direction: rtl;
}
body,input,button,textarea,h1,h2,h3,h4,h5,h6{font-family: YekanBakhFa, sans-serif;}
/* صفحه لاگین */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid #e2e8f0;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 24px;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #2563eb;
}

/* پیام‌ها */
.message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* داشبورد */
.dashboard-container {
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    color: #1e293b;
    font-size: 20px;
}

.user-menu {
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-menu a {
    color: #475569;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.user-menu a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.main-content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* فرم کوتاه کننده */
.shortener-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.shortener-form h2 {
    margin-bottom: 24px;
    color: #1e293b;
    font-size: 20px;
}

.result-box {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.short-url {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.short-url input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    font-family: monospace;
}

.btn-copy {
    padding: 12px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #059669;
}

/* جدول لینک‌ها */
.links-container {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.links-table {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.original-url a {
    color: #3b82f6;
    text-decoration: none;
}

.original-url a:hover {
    text-decoration: underline;
}

.btn-delete {
    padding: 6px 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.demo-info {
    margin-top: 20px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;

}

