@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* { box-sizing: border-box; font-family: 'Cairo', sans-serif; direction: rtl; margin: 0; padding: 0; }
body { background-color: #f3f2ef; color: #111111; line-height: 1.6; }

/* Navbar - Youm7 Black & Red with LinkedIn Icon style */
.navbar { background-color: #111111; color: #ffffff; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 4px solid #e30613; height: 60px; position: sticky; top: 0; z-index: 1000; }
.navbar .logo { font-size: 22px; font-weight: 700; color: #ffffff; text-decoration: none; display: flex; align-items: center; gap: 8px;}
.navbar .logo i { color: #e30613; font-size: 28px; }
.navbar .logo span { color: #e30613; }

.nav-icons { display: flex; gap: 25px; height: 100%; align-items: center; }
.nav-icon { color: #aaaaaa; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; transition: 0.3s; height: 100%; padding: 0 10px; border-bottom: 3px solid transparent; }
.nav-icon i { font-size: 20px; margin-bottom: 3px; }
.nav-icon:hover, .nav-icon.active { color: #ffffff; border-bottom: 3px solid #e30613; }
.nav-icon.logout { color: #e30613; }
.nav-icon.logout:hover { color: #ff3344; border-bottom-color: #ff3344; }

/* Main Container & LinkedIn 3-Column Grid */
.container { max-width: 1128px; margin: 25px auto; padding: 0 15px; }
.layout-grid { display: grid; grid-template-columns: 225px 1fr 300px; gap: 24px; }
@media (max-width: 992px) { .layout-grid { grid-template-columns: 1fr; } } /* Responsive */

/* Cards */
.card { background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 2px 3px rgba(0,0,0,0.05); overflow: hidden; }
.card-header { font-size: 18px; font-weight: 700; color: #111111; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.card-header i { color: #e30613; }

/* Profile Card (Left Sidebar) */
.profile-card { padding: 0; text-align: center; }
.profile-cover { height: 60px; background: linear-gradient(135deg, #111111 0%, #333333 100%); border-bottom: 2px solid #e30613; }
.profile-avatar { width: 70px; height: 70px; background-color: #ffffff; border: 2px solid #e30613; border-radius: 50%; margin: -35px auto 10px auto; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #111111; }
.profile-info { padding: 15px; }
.profile-name { font-weight: 700; font-size: 18px; }
.profile-headline { font-size: 13px; color: #666666; margin-bottom: 15px; }
.profile-stat { display: flex; justify-content: space-between; font-size: 12px; color: #666; padding: 10px 15px; border-top: 1px solid #ebebeb; font-weight: 600; }
.profile-stat span.num { color: #e30613; }

/* Forms & Inputs */
.form-group { margin-bottom: 15px; text-align: right; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #444; font-size: 14px; }
.form-control { width: 100%; padding: 10px 15px; border: 1px solid #cccccc; border-radius: 6px; font-size: 15px; transition: 0.3s; background-color: #f8f9fa; }
.form-control:focus { border-color: #e30613; outline: none; background-color: #ffffff; box-shadow: 0 0 0 2px rgba(227,6,19,0.1); }

/* Buttons */
.btn-primary { background-color: #e30613; color: #ffffff; border: none; padding: 10px 20px; font-size: 16px; font-weight: 700; border-radius: 25px; cursor: pointer; width: 100%; transition: 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { background-color: #c0000a; }
.btn-outline { background-color: transparent; color: #111111; border: 1px solid #111111; padding: 8px 15px; font-size: 14px; font-weight: 600; border-radius: 25px; cursor: pointer; transition: 0.3s; }
.btn-outline:hover { background-color: #f3f2ef; border-color: #111111; }

/* Tables styled as Feeds/Lists */
.feed-item { border-bottom: 1px solid #ebebeb; padding: 15px 0; display: flex; flex-direction: column; gap: 10px; }
.feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-header { display: flex; justify-content: space-between; align-items: flex-start; }
.feed-title { font-weight: 700; font-size: 16px; color: #111; }
.feed-subtitle { font-size: 13px; color: #666; }
.feed-body { display: flex; gap: 15px; align-items: center; background: #f9f9f9; padding: 10px; border-radius: 8px; border-right: 3px solid #e30613; }
.feed-score { display: flex; flex-direction: column; align-items: center; background: #fff; padding: 8px 15px; border-radius: 6px; border: 1px solid #eee; }
.feed-score .val { font-size: 18px; font-weight: bold; color: #28a745; }
.feed-score .lbl { font-size: 11px; color: #666; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; }
.status-pending { background-color: #fff3cd; color: #856404; }
.status-accepted { background-color: #d4edda; color: #155724; }
.status-rejected { background-color: #f8d7da; color: #721c24; }

/* Landing Page (Index) */
.landing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; min-height: 80vh; }
.landing-text h1 { font-size: 48px; font-weight: 300; color: #e30613; line-height: 1.2; margin-bottom: 20px; }
.landing-text h1 span { font-weight: 700; color: #111111; }
.landing-text p { font-size: 20px; color: #555; margin-bottom: 30px; }
.tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
.tab { flex: 1; text-align: center; padding: 15px; cursor: pointer; font-weight: 600; color: #666; transition: 0.3s; border-bottom: 2px solid transparent; }
.tab.active { color: #e30613; border-bottom: 2px solid #e30613; }

/* AI Test Box */
.test-box { background-color: #111111; color: #ffffff; padding: 25px; border-radius: 8px; font-size: 20px; line-height: 1.8; margin-bottom: 20px; user-select: none; border-right: 5px solid #e30613; }
textarea.test-input { width: 100%; height: 150px; padding: 20px; font-size: 18px; border: 2px solid #ccc; border-radius: 8px; resize: none; transition: 0.3s; }
textarea.test-input:focus { border-color: #e30613; outline: none; box-shadow: 0 0 10px rgba(227,6,19,0.1); }

/* Utilities */
.text-red { color: #e30613 !important; }
.mt-1 { margin-top: 10px; }
.mb-1 { margin-bottom: 10px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
