/* Frontend Styles for Recruitment Goal Tracker */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.rgt-tracker-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background: linear-gradient(135deg, #0f1419 0%, #1a1d29 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.rgt-tracker-container * {
    box-sizing: border-box;
}

/* Password Protection Screen */
.rgt-password-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.rgt-password-form {
    background: rgba(26, 29, 41, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.rgt-password-form h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rgt-password-form input {
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.rgt-password-form input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.rgt-password-form button {
    width: 100%;
    padding: 0.75rem;
    background: #00d4ff;
    color: #0f1419;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rgt-password-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.rgt-error {
    color: #ff4757;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 4px;
}

/* Header */
.rgt-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.rgt-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #f28303;
    text-shadow: 0 0 20px rgba(242, 131, 3, 0.5), 0 0 40px rgba(242, 131, 3, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(242, 131, 3, 0.5), 0 0 40px rgba(242, 131, 3, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(242, 131, 3, 0.8), 0 0 60px rgba(242, 131, 3, 0.5);
    }
}

.rgt-header p {
    font-size: 1.25rem;
    color: #a0a8b8;
}

/* Cards */
.rgt-card {
    background: rgba(26, 29, 41, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.rgt-card:hover {
    transform: translateY(-2px);
}

.rgt-glow-cyan {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.rgt-glow-green {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Progress Grid */
.rgt-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rgt-progress-card {
    text-align: center;
    animation: fadeInLeft 0.8s ease-out;
}

.rgt-progress-card:nth-child(2) {
    animation: fadeInRight 0.8s ease-out;
}

.rgt-progress-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.rgt-icon {
    width: 2rem;
    height: 2rem;
}

.rgt-icon-users {
    color: #00d4ff;
}

.rgt-icon-dollar {
    color: #00ff88;
}

/* Progress Ring */
.rgt-progress-ring-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.rgt-progress-ring {
    transform: rotate(-90deg);
    width: 160px;
    height: 160px;
}

.rgt-progress-ring circle {
    transition: stroke-dasharray 0.5s ease-in-out;
}

.rgt-progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rgt-progress-details {
    text-align: center;
}

.rgt-progress-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
}

.rgt-progress-target {
    color: #a0a8b8;
    margin-bottom: 0.5rem;
}

.rgt-progress-remaining {
    font-size: 0.875rem;
    font-weight: 600;
}

.rgt-primary {
    color: #00d4ff;
}

.rgt-accent {
    color: #00ff88;
}

/* Stats Grid */
.rgt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.rgt-stat-card {
    text-align: center;
    padding: 1rem;
}

.rgt-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rgt-stat-label {
    font-size: 0.875rem;
    color: #a0a8b8;
}

/* Achievements */
.rgt-achievements {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.rgt-achievements h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.rgt-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.rgt-achievement {
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.rgt-achievement.rgt-achieved {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    transform: scale(1.02);
}

.rgt-achievement.rgt-achieved .rgt-achievement-header {
    color: #00d4ff !important;
}

.rgt-achievement.rgt-achieved .rgt-icon {
    color: #00d4ff !important;
}

/* Revenue Achievement Styling - Green */
.rgt-achievement.rgt-achieved.rgt-revenue {
    border-color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.15) !important;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4) !important;
    transform: scale(1.02);
}

.rgt-achievement.rgt-achieved.rgt-revenue .rgt-achievement-header {
    color: #00ff88 !important;
}

.rgt-achievement.rgt-achieved.rgt-revenue .rgt-icon {
    color: #00ff88 !important;
}

.rgt-achievement.rgt-not-achieved {
    border-color: #2a2f3a;
    background: rgba(42, 47, 58, 0.2);
}

.rgt-achievement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rgt-achievement.rgt-achieved .rgt-achievement-header {
    color: #00d4ff;
}

.rgt-achievement.rgt-not-achieved .rgt-achievement-header {
    color: #a0a8b8;
}

.rgt-achievement-description {
    font-size: 0.875rem;
    color: #a0a8b8;
}

/* Team Comments */
.rgt-team-comments {
    margin-bottom: 2rem;
}

.rgt-team-message {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #f28303;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    font-style: italic;
    position: relative;
}

.rgt-team-message::before {
    content: '"';
    font-size: 3rem;
    color: #f28303;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    opacity: 0.3;
}

.rgt-team-message::after {
    content: '"';
    font-size: 3rem;
    color: #f28303;
    position: absolute;
    bottom: -1.5rem;
    right: 0.5rem;
    opacity: 0.3;
}
.rgt-recent-deals {
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.rgt-recent-deals h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.rgt-deals-list {
    max-height: 300px;
    overflow-y: auto;
}

.rgt-deal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(42, 47, 58, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out;
}

.rgt-deal-item:hover {
    transform: translateY(-1px);
}

.rgt-deal-info h3 {
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #BE5103;
}

.rgt-deal-date {
    font-size: 0.875rem;
    color: #a0a8b8;
}

.rgt-deal-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #00ff88;
}

/* Celebration */
.rgt-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    pointer-events: none;
    animation: celebrationPulse 3s ease-out;
}

.rgt-celebration.rgt-show {
    display: flex;
}

.rgt-celebration-content {
    text-align: center;
}

.rgt-celebration-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

.rgt-celebration-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.rgt-celebration-text {
    font-size: 1.25rem;
    color: #a0a8b8;
}

/* Utility Classes */
.rgt-text-primary {
    color: #00d4ff;
}

.rgt-text-accent {
    color: #00ff88;
}

.rgt-text-chart-3 {
    color: #ffb800;
}

.rgt-text-chart-4 {
    color: #ff6b6b;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes celebrationPulse {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rgt-tracker-container {
        padding: 1rem;
    }
    
    .rgt-header h1 {
        font-size: 2.5rem;
    }
    
    .rgt-header p {
        font-size: 1rem;
    }
    
    .rgt-progress-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rgt-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rgt-achievements-grid {
        grid-template-columns: 1fr;
    }
}


/* Deal Actions */
.rgt-deal-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rgt-edit-btn,
.rgt-delete-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rgt-edit-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-1px);
}

.rgt-delete-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
    color: #ff4757;
    transform: translateY(-1px);
}

.rgt-deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.rgt-deal-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.rgt-deal-info {
    flex: 1;
}

.rgt-deal-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.rgt-deal-date {
    font-size: 0.875rem;
    color: #a0a8b8;
}

.rgt-deal-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #00ff88;
    margin-right: 1rem;
}

/* Modal Styles */
.rgt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rgt-modal-content {
    background: linear-gradient(135deg, #1a1d29 0%, #2a2d39 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.rgt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rgt-modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.rgt-modal-close {
    background: none;
    border: none;
    color: #a0a8b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rgt-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.rgt-modal-body {
    padding: 1.5rem;
}

.rgt-form-group {
    margin-bottom: 1.5rem;
}

.rgt-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.rgt-form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rgt-form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.rgt-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.rgt-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.rgt-btn-primary {
    background: #00d4ff;
    color: #0f1419;
}

.rgt-btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.rgt-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rgt-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for deal items */
@media (max-width: 768px) {
    .rgt-deal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .rgt-deal-actions {
        align-self: flex-end;
    }
    
    .rgt-deal-amount {
        margin-right: 0;
        align-self: flex-end;
    }
    
    .rgt-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .rgt-form-actions {
        flex-direction: column;
    }
    
    .rgt-btn {
        width: 100%;
    }
}


/* Ultimate Achievement Styling */
.rgt-ultimate-achievement {
    grid-column: 1 / -1; /* Span full width */
    background: linear-gradient(135deg, #f28303 0%, #ff6b35 100%);
    border: 2px solid #f28303;
    position: relative;
    overflow: hidden;
}

.rgt-ultimate-achievement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.rgt-ultimate-achievement .rgt-achievement-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rgt-ultimate-achievement .rgt-achievement-description {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .rgt-achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rgt-achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .rgt-achievement {
        padding: 1rem;
    }
    
    .rgt-achievement-header {
        font-size: 0.875rem;
    }
    
    .rgt-achievement-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .rgt-achievements-grid {
        grid-template-columns: 1fr;
    }
}

